/// <summary> /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt) /// </summary> /// <param name="pauseapp"></param> public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip) { if (skip) { return; } ParamPrompt p = new ParamPrompt(displayParamsAvail); r = displayParamsAvail; p.Invalidate(true); if (pauseapp) { if (p.ShowDialog() == DialogResult.OK) { } else { displayParamsAvail.isValid = false; } } else { p.FormClosing += new FormClosingEventHandler(p_FormClosing); p.Show(); } p.Invalidate(true); }
static void p_FormClosing(object sender, FormClosingEventArgs e) { ParamPrompt p = (ParamPrompt)sender; if (p.DialogResult != DialogResult.OK) { r.isValid = false; } }
/// <summary> /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt) /// </summary> /// <param name="pauseapp"></param> public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip) { if (skip) return; ParamPrompt p = new ParamPrompt(displayParamsAvail); p.Invalidate(true); if (pauseapp) p.ShowDialog(); else p.Show(); p.Invalidate(true); }
/// <summary> /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt) /// </summary> /// <param name="pauseapp"></param> public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip) { if (skip) { return; } ParamPrompt p = new ParamPrompt(displayParamsAvail); p.Invalidate(true); if (pauseapp) { p.ShowDialog(); } else { p.Show(); } p.Invalidate(true); }
/// <summary> /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt) /// </summary> /// <param name="pauseapp"></param> public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip) { if (skip) return; ParamPrompt p = new ParamPrompt(displayParamsAvail); r = displayParamsAvail; p.Invalidate(true); if (pauseapp) { if (p.ShowDialog() == DialogResult.OK) { } else displayParamsAvail.isValid = false; } else { p.FormClosing += new FormClosingEventHandler(p_FormClosing); p.Show(); } p.Invalidate(true); }