Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / C#

TSWizard - A Wizard Framework for .NET

Rate me:
Please Sign up or sign in to vote.
4.86/5 (55 votes)
26 May 2003BSD17 min read 462K   4.6K   209  
Provides a framework for creating wizards for use in your .NET applications
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
		}

		/// <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.SuspendLayout();
			// 
			// DemoWizard
			// 
			this.AllowClose = TSWizards.AllowClose.AskIfNotFinish;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(490, 357);
			this.FirstStepName = "Step1";
			this.Name = "DemoWizard";
			this.Text = "Wait On Us ordering wizard";
			this.LoadSteps += new System.EventHandler(this.DemoWizard_LoadSteps);
			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.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Software Developer (Senior) InfoPlanIT, LLC
United States United States
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.

Comments and Discussions