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);
本文介绍了一种使用C#创建向导控件的方法,包括一个基础向导窗体类BaseWizardForm和一个用于控制不同向导页面显示的控制器类WizardController。BaseWizardForm提供了灵活的按钮配置选项,WizardController则负责管理多个向导页面之间的导航。
1109





