/// <summary> /// Shows the message box. /// </summary> /// <param name="p_ctlParent">The parent of the message box.</param> /// <param name="p_strMessage">The message to display.</param> /// <param name="p_strCaption">The windows title.</param> /// <param name="p_strDetails">The HTML-formatted details to display.</param> /// <param name="p_mbbButtons">The buttons to display.</param> /// <param name="p_mbiIcon">The icon to display.</param> /// <param name="p_booRemember">Indicates whether the selected button should be remembered.</param> public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, out bool p_booRemember) { ExtendedMessageBox mbxBox = new ExtendedMessageBox(); mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_mbbButtons, p_mbiIcon, true); DialogResult drsResult = Show(mbxBox, p_ctlParent); p_booRemember = mbxBox.RememberSelection; return drsResult; }
/// <summary> /// Shows the message box. /// </summary> /// <param name="p_ctlParent">The parent of the message box.</param> /// <param name="p_strMessage">The message to display.</param> /// <param name="p_strCaption">The windows title.</param> /// <param name="p_strDetails">The HTML-formatted details to display.</param> /// <param name="p_ebbButtons">The extended buttons to display.</param> /// <param name="p_mbiIcon">The icon to display.</param> public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon) { ExtendedMessageBox mbxBox = new ExtendedMessageBox(); mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_ebbButtons, p_mbiIcon, false); return Show(mbxBox, p_ctlParent); }
/// <summary> /// Shows the message box. /// </summary> /// <param name="p_ctlParent">The parent of the message box.</param> /// <param name="p_strMessage">The message to display.</param> /// <param name="p_strCaption">The windows title.</param> /// <param name="p_strDetails">The HTML-formatted details to display.</param> /// <param name="p_intMinWidth">The minimum width of the message box.</param> /// <param name="p_intDetailHeight">The initial height of the details section.</param> /// <param name="p_mbbButtons">The buttons to display.</param> /// <param name="p_mbiIcon">The icon to display.</param> public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, Int32 p_intMinWidth, Int32 p_intDetailHeight, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon) { ExtendedMessageBox mbxBox = new ExtendedMessageBox(); mbxBox.MinimumSize = new Size(p_intMinWidth, mbxBox.MinimumSize.Height); mbxBox.LastDetailsHeight = p_intDetailHeight; mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_mbbButtons, p_mbiIcon, false); return Show(mbxBox, p_ctlParent); }
/// <summary> /// Shows the message box. /// </summary> /// <param name="p_ctlParent">The parent of the message box.</param> /// <param name="p_mbxBox">The dialog to display.</param> protected static DialogResult Show(ExtendedMessageBox p_mbxBox, Control p_ctlParent) { DialogResult drsResult = DialogResult.OK; if (p_ctlParent == null) drsResult = p_mbxBox.ShowDialog(); else drsResult = p_mbxBox.ShowDialog(p_ctlParent); return drsResult; }
/// <summary> /// Shows the message box. /// </summary> /// <param name="p_ctlParent">The parent of the message box.</param> /// <param name="p_strMessage">The message to display.</param> /// <param name="p_strCaption">The windows title.</param> /// <param name="p_strDetails">The HTML-formatted details to display.</param> /// <param name="p_ebbButtons">The extended buttons to display.</param> /// <param name="p_mbiIcon">The icon to display.</param> public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon) { ExtendedMessageBox mbxBox = new ExtendedMessageBox(); mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_ebbButtons, p_mbiIcon, false); return Show(mbxBox, p_ctlParent); }