Wizard In C#
As we know there is no wizard class in .net framework. I just write two classes for control wizard in C#.
The code list here.
1, BaseWizardForm
2, WizardController used to contol which wizard form to display
3 How to use.
A, Create new forms derived from BaseWizardForm and set the forms' WizardButton Property.
B, Create a new class derived from WizardController and add the forms to the controller.
public TestWizardController()
{
this.AddForm(typeof(Form1));
this.AddForm(typeof(Form2));
}
C, Show the wizard
TestWizardController test = new TestWizardController()
test.ShowDialog(null);