Represents a form containing a wizard control that guides users through a process step by step. This form simply wraps the WizardControl in a form and handles communication with the user.
Inheritance: FormWin, IWizardForm
Exemplo n.º 1
0
        private static bool Show(string title, IWizardController wizardController, bool showDialog,
                                 IControlFactory controlFactory)
        {
            WizardFormWin form = new WizardFormWin(wizardController, controlFactory);

            form.Text          = title;
            form.StartPosition = FormStartPosition.CenterParent;
            if (showDialog)
            {
                return(form.ShowDialog() == (System.Windows.Forms.DialogResult)Base.DialogResult.OK);
            }
            form.Show();
            return(true);
        }
Exemplo n.º 2
0
 private static bool Show(string title, IWizardController wizardController, bool showDialog,
                          IControlFactory controlFactory)
 {
     WizardFormWin form = new WizardFormWin(wizardController, controlFactory);
     form.Text = title;
     form.StartPosition = FormStartPosition.CenterParent;
     if (showDialog)
     {
         return form.ShowDialog() == (System.Windows.Forms.DialogResult)Base.DialogResult.OK;
     }
     form.Show();
     return true;
 }