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); }
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; }