/// <summary> /// Show a standard error dialog box, parented to the current control. /// </summary> /// <param name="Message">A string specifying the text to be shown in the dialog box .</param> internal void ShowErrorMessage(string Message) { GenericMessageBox.Show(this, Message, Properties.Resources.DialogTitle, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0); }
/// <summary> /// Show a standard "yes or no" dialog box, parented to the current control. /// </summary> /// <param name="Message">A string specifying the text to be shown in the dialog box .</param> /// <returns>A DialogResult specifying the button selected by the user.</returns> internal DialogResult ShowYesNoMessage(string Message) { return(GenericMessageBox.Show(this, Message, Properties.Resources.DialogTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0)); }
/// <summary> /// Show a standard error dialog box. /// </summary> /// <param name="Window">An IWin32Window object specifying the parent window for the dialog box.</param> /// <param name="Message">A string specifying the text to be shown in the dialog box .</param> internal static void ShowErrorMessage(IWin32Window Window, string Message) { GenericMessageBox.Show(Window, Message, Properties.Resources.DialogTitle, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0); }