Habanero.Faces.Win.WizardFormWin.ShowDialog C# (CSharp) Method

ShowDialog() public static method

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
return bool
        public static bool ShowDialog(string title, IWizardController wizardController, IControlFactory controlFactory)
        {
            return Show(title, wizardController, true, controlFactory);
        }

Usage Example

Example #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);
        }
All Usage Examples Of Habanero.Faces.Win.WizardFormWin::ShowDialog