Wizard in C#

来源:互联网 发布:mac版游戏 编辑:程序博客网 时间:2024/06/13 03:08

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);

原创粉丝点击