|
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Microsoft.ApplicationBlocks.UIProcess;
namespace SimpleWizardUIPAB
{
/// <summary>
/// Summary description for View2.
/// </summary>
public class View2 : WindowsFormView, IWizardViewTransition
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public View2()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.ForeColor = System.Drawing.Color.Maroon;
this.label1.Location = new System.Drawing.Point(56, 184);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(136, 23);
this.label1.TabIndex = 1;
this.label1.Text = "Managed by the UIPAB";
//
// checkBox1
//
this.checkBox1.Location = new System.Drawing.Point(32, 80);
this.checkBox1.Name = "checkBox1";
this.checkBox1.TabIndex = 2;
this.checkBox1.Text = "checkBox1";
//
// checkBox2
//
this.checkBox2.Location = new System.Drawing.Point(136, 80);
this.checkBox2.Name = "checkBox2";
this.checkBox2.TabIndex = 3;
this.checkBox2.Text = "checkBox2";
//
// label2
//
this.label2.Location = new System.Drawing.Point(72, 16);
this.label2.Name = "label2";
this.label2.TabIndex = 4;
this.label2.Text = "label2";
//
// button1
//
this.button1.Location = new System.Drawing.Point(64, 128);
this.button1.Name = "button1";
this.button1.TabIndex = 5;
this.button1.Text = "button1";
//
// View2
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 272);
this.Controls.Add(this.button1);
this.Controls.Add(this.label2);
this.Controls.Add(this.checkBox2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.label1);
this.Name = "View2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "UIPAB Wizard: View2";
this.ResumeLayout(false);
}
#endregion
#region IWizardView Implementation
public bool DoFinish()
{
return false;
}
public bool DoCancel()
{
return true;
}
public bool DoNext()
{
Navigator.CurrentState.NavigateValue="next";
return true;
}
public bool SupportsCancel
{
get
{
return true;
}
}
public bool SupportsFinish
{
get
{
return false;
}
}
public bool DoBack()
{
return true;
}
public void WizardActivated()
{
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Roy is a software developer who digs all aspects of software development, from design and architecture to implementation.