コード例 #1
0
ファイル: Step1.cs プロジェクト: richardadalton/WizardFX
        private void button1_click(object sender, EventArgs e)
        {
            var subWizard = new Wizard("SubWizard");
                subWizard.AddStep(new SubStep1_1());

            StartSubWizard(subWizard);
        }
コード例 #2
0
ファイル: Step2.cs プロジェクト: richardadalton/WizardFX
        private void button2_click(object sender, EventArgs e)
        {
            var subWizard = new Wizard("RightList");
            subWizard.AddStep(new SubStep1_1());

            ParentWizard.StartSubWizard(subWizard);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: richardadalton/WizardFX
        public Form1()
        {
            InitializeComponent();

            var wizard = new Wizard();
            wizard.AddStep(new Step1())
                  .AddStep(new Step2());

            var controller = new WizardController(wizardView);
            controller.Start(wizard);
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: richardadalton/WizardFX
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var argsForStep2 = new Args();
            argsForStep2.AddOrReplace("arg1", "abcdef");
            argsForStep2.AddOrReplace("arg2", "bcdef");
            argsForStep2.AddOrReplace("arg3", "cdef");
            argsForStep2.AddOrReplace("arg4", "efghi");
            argsForStep2.AddOrReplace("arg5", "fghijkl");

            IWizardView view = new SimpleWizardView();
            var controller = new WizardController(view);

            var wizard = new Wizard();
            wizard.AddStep(new Step1(argsForStep2))
                  .AddStep(new Step2(argsForStep2));
            controller.Start(wizard);

            Application.Run(view as Form);
        }
コード例 #5
0
 public void move_previous_unstarted_wizard_throws_exception()
 {
     _wizard = new Wizard();
     _wizard.AddStep(new WizardStep());
     _wizard.MovePrevious();
 }