ShowDialog() 공개 정적인 메소드

A convenience method to show a wizard using a particular title and wizard controller in a dialog
public static ShowDialog ( string title, IWizardController wizardController, IControlFactory controlFactory ) : bool
title string The title of the wizard, displayed in the title bar of the form
wizardController IWizardController The wizard controller
controlFactory IControlFactory the factory used to create the controls on the wizard
리턴 bool
예제 #1
0
        private static bool Show(string title, IWizardController wizardController, bool showDialog,
                                 IControlFactory controlFactory)
        {
            WizardFormVWG form = new WizardFormVWG(wizardController, controlFactory);

            form.Text          = title;
            form.StartPosition = FormStartPosition.CenterParent;
            if (showDialog)
            {
                return(form.ShowDialog() == (Gizmox.WebGUI.Forms.DialogResult)Base.DialogResult.OK);
            }
            form.Show();
            return(true);
        }
예제 #2
0
 private static bool Show(string title, IWizardController wizardController, bool showDialog,
                          IControlFactory controlFactory)
 {
     WizardFormVWG form = new WizardFormVWG(wizardController, controlFactory);
     form.Text = title;
     form.StartPosition = FormStartPosition.CenterParent;
     if (showDialog)
     {
         return form.ShowDialog() == (Gizmox.WebGUI.Forms.DialogResult)Base.DialogResult.OK;
     }
     form.Show();
     return true;
 }