Пример #1
0
        private void button1_click(object sender, EventArgs e)
        {
            var subWizard = new Wizard("SubWizard");
                subWizard.AddStep(new SubStep1_1());

            StartSubWizard(subWizard);
        }
Пример #2
0
        private void button2_click(object sender, EventArgs e)
        {
            var subWizard = new Wizard("RightList");
            subWizard.AddStep(new SubStep1_1());

            ParentWizard.StartSubWizard(subWizard);
        }
Пример #3
0
        public Form1()
        {
            InitializeComponent();

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

            var controller = new WizardController(wizardView);
            controller.Start(wizard);
        }
Пример #4
0
        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();
 }