Beispiel #1
0
 /// <summary>
 /// Shows the specified message box.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="caption">The caption.</param>
 /// <param name="buttons">The buttons.</param>
 /// <param name="icon">The icon.</param>
 /// <returns></returns>
 public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
 {
     return(FlexibleMessageBoxForm.Show(null, text, caption, buttons, icon, MessageBoxDefaultButton.Button1));
 }
Beispiel #2
0
 /// <summary>
 /// Shows the specified message box.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <returns>The dialog result.</returns>
 public static DialogResult Show(string text)
 {
     return(FlexibleMessageBoxForm.Show(null, text, "Message", MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1));
 }