Beispiel #1
0
 /// <summary>
 /// Shows the CleverMessageBox to the user.
 /// The CleverMessageBox will have only an OK button, and an Information
 /// icon.
 /// </summary>
 /// <param name="message">
 /// The message to display in the CleverMessageBox.
 /// </param>
 /// <param name="caption">
 /// The caption to display in the title bar of the CleverMessageBox
 /// </param>
 /// <param name="control">
 /// The control from which this method is being called.
 /// </param>
 /// <returns>
 /// A System.Windows.Forms.DialogResult which reflects the button which
 /// the user clicked in response to the MessageBox.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 /// The supplied control is null.
 /// </exception>
 public static DialogResult Show(string message,
                                 string caption,
                                 Control control)
 {
     return(CleverMessageBox.Show(message,
                                  caption,
                                  MessageBoxButtons.OK,
                                  control));
 }
Beispiel #2
0
 /// <summary>
 /// Shows the CleverMessageBox to the user.
 /// Sets the MessageBoxDefaultButton to the first button on the
 /// CleverMessageBox.
 /// </summary>
 /// <param name="message">
 /// The message to display in the CleverMessageBox.
 /// </param>
 /// <param name="caption">
 /// The caption to display in the title bar of the CleverMessageBox
 /// </param>
 /// <param name="buttons">
 /// A <see cref="System.Windows.Forms.MessageBoxButtons" /> value
 /// indicating what buttons should be shown on the CleverMessageBox
 /// </param>
 /// <param name="icon">
 /// A <see cref="System.Windows.Forms.MessageBoxIcon" /> value
 /// indicating what icon should be shown in the CleverMessageBox.
 /// </param>
 /// <param name="control">
 /// The control from which this method is being called.
 /// </param>
 /// <returns>
 /// A System.Windows.Forms.DialogResult which reflects the button which
 /// the user clicked in response to the MessageBox.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 /// The supplied control is null.
 /// </exception>
 public static DialogResult Show(string message,
                                 string caption,
                                 MessageBoxButtons buttons,
                                 MessageBoxIcon icon,
                                 Control control)
 {
     return(CleverMessageBox.Show(message,
                                  caption,
                                  buttons,
                                  icon,
                                  MessageBoxDefaultButton.Button1,
                                  control));
 }
Beispiel #3
0
 /// <summary>
 /// Shows the CleverMessageBox to the user.
 /// The CleverMessageBox will have only an OK button, and an Information
 /// icon, and the word "Information" will be used as the caption.
 /// </summary>
 /// <param name="message">
 /// The message to display in the CleverMessageBox.
 /// </param>
 /// <param name="control">
 /// The control from which this method is being called.
 /// </param>
 /// <returns>
 /// A System.Windows.Forms.DialogResult which reflects the button which
 /// the user clicked in response to the MessageBox.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 /// The supplied control is null.
 /// </exception>
 public static DialogResult Show(string message, Control control)
 {
     return(CleverMessageBox.Show(message, "Information", control));
 }