|
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace TSWizardDemo
{
public class Step1 : TSWizards.BaseStep
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.CheckBox noShowWelcome;
private System.ComponentModel.IContainer components = null;
public Step1()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
// TODO: Add any initialization after the 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 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.noShowWelcome = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// Description
//
this.Description.Text = "Welcome to the waiter wizard! In this wizard I will take your order then fetch i" +
"t in 30 seconds or less; or else its free!";
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 112);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(192, 32);
this.label1.TabIndex = 1;
this.label1.Text = "Click next to proceed with your order";
//
// noShowWelcome
//
this.noShowWelcome.Location = new System.Drawing.Point(8, 208);
this.noShowWelcome.Name = "noShowWelcome";
this.noShowWelcome.Size = new System.Drawing.Size(240, 24);
this.noShowWelcome.TabIndex = 2;
this.noShowWelcome.Text = "Don\'t show this welcome screen again";
//
// Step1
//
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.Description,
this.noShowWelcome,
this.label1});
this.Name = "Step1";
this.NextStep = "Step2";
this.StepTitle = "Welcome to the Wait On Us ordering wizard!";
this.ShowStep += new System.EventHandler(this.Step1_ShowStep);
this.ResumeLayout(false);
}
#endregion
private void Step1_ShowStep(object sender, System.EventArgs e)
{
}
public bool NoShowWelcomeAgain
{
get
{
return noShowWelcome.Checked;
}
set
{
noShowWelcome.Checked = value;
}
}
}
}
|
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.
James has been programming in C/C++ since 1998, and grew fond of databases in 1999. His latest interest has been in C# and .NET where he has been having fun writing code starting when .NET v1.0 was in its first beta.
He is currently a senior developer and consultant for
InfoPlanIT, a small international consulting company that focuses on custom solutions and business intelligence applications.
He was previously employed by ComponentOne where he was a Product Manager for the ActiveReports, Data Dynamics Reports, and ActiveAnalysis products.
Code contained in articles where he is the sole author is licensed via the
new BSD license.