|
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace TSWizardDemo
{
public class DemoWizard : TSWizards.BaseWizard
{
private System.ComponentModel.IContainer components = null;
public DemoWizard()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
// TODO: Add any initialization after the InitializeComponent call
Logo = new Bitmap(typeof(DemoWizard), "customLogo.jpg");
}
/// <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.wizardTop.SuspendLayout();
this.SuspendLayout();
//
// wizardTop
//
this.wizardTop.Size = new System.Drawing.Size(490, 64);
this.wizardTop.Visible = true;
//
// cancel
//
this.cancel.Location = new System.Drawing.Point(10, 8);
this.cancel.Visible = true;
//
// back
//
this.back.Location = new System.Drawing.Point(298, 8);
this.back.Visible = true;
//
// next
//
this.next.Location = new System.Drawing.Point(394, 8);
this.next.Visible = true;
//
// panelStep
//
this.panelStep.Location = new System.Drawing.Point(0, 64);
this.panelStep.Size = new System.Drawing.Size(490, 293);
this.panelStep.Visible = true;
//
// DemoWizard
//
this.AllowClose = TSWizards.AllowClose.Ask;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(490, 357);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.panelStep,
this.wizardTop});
this.FirstStepName = "Step1";
this.Name = "DemoWizard";
this.Text = "Wait On Us ordering wizard";
this.LoadSteps += new System.EventHandler(this.DemoWizard_LoadSteps);
this.wizardTop.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void DemoWizard_LoadSteps(object sender, System.EventArgs e)
{
AddStep("Step1", new Step1());
AddStep("Step2", new Step2());
AddStep("Step3", new Step3());
AddStep("Step4", new Step4());
AddStep("Step5", new Step5());
}
}
}
|
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.