Beispiel #1
0
 internal MsgBoxExForm(string message, string caption, MsgBoxButtons msgBoxButtons, MsgBoxIcon icon, MsgBoxDefaultButton defaultButton,
                       MsgBoxCheckBox checkBox, string textColor, string formBackGroundColor, MsgBoxOrder topmost) :
     this(message, caption, msgBoxButtons, icon, defaultButton, checkBox, textColor, formBackGroundColor)
 {
     // Set the Z index of the form.
     SetTopMost = topmost;
 }
Beispiel #2
0
 internal MsgBoxExForm(string message, string caption, MsgBoxButtons msgBoxButtons, MsgBoxIcon icon, MsgBoxDefaultButton defaultButton,
                       MsgBoxCheckBox checkBox, string textColor, string formBackGroundColor) :
     this(message, caption, msgBoxButtons, icon, defaultButton, checkBox, textColor)
 {
     // Set the color of the form background.
     FormColor = formBackGroundColor;
 }
Beispiel #3
0
 internal MsgBoxExForm(string message, string caption, MsgBoxButtons msgBoxButtons, MsgBoxIcon icon, MsgBoxDefaultButton defaultButton,
                       MsgBoxCheckBox checkBox, string textColor) : this(message, caption, msgBoxButtons, icon, defaultButton, checkBox)
 {
     // Set the color of the Message text.
     TextColor = textColor;
 }
Beispiel #4
0
 internal MsgBoxExForm(string message, string caption, MsgBoxButtons msgBoxButtons, MsgBoxIcon icon,
                       MsgBoxDefaultButton defaultButton, MsgBoxCheckBox checkBox) : this(message, caption, msgBoxButtons, icon, defaultButton)
 {
     // Set the check box
     CheckBox = checkBox;
 }
Beispiel #5
0
 /// <summary>
 /// Displays a message box with specified text, caption, buttons, Icon, default button, a Do not show again Check box,
 /// custom Text color using a hexadecimal color (web color code #0000FF = Blue text), custom form background color
 /// using a hexadecimal color (web color code #C0C0C0 = Silver background) (The button bar is automatic set to a darker color than the form background.)
 /// and MsgBox order (TopMost).
 /// To get the result of the check box, add: Syste.Windows.Forms.CheckState doNotShowAgain = System.Windows.Forms.CheckState.Indeterminate;
 /// Before the MsgBox call.
 /// </summary>
 /// <param name="message">
 /// The text to display in the message box.
 /// </param>
 /// <param name="caption">
 /// The text to display in the title bar of the message box.
 /// </param>
 /// <param name="msgBoxButtons">
 /// One of the MsgBoxButtons values that specifies which
 /// buttons to display.
 /// </param>
 /// <param name="icon">
 /// One of the MsgBoxIcon values that specifies which icon
 /// to display in the message box.
 /// <param name="defaultButton">
 ///  One of the MsgBoxDefaultButton values that specifies
 ///  the default button for the message box.
 /// </param>
 /// <param name="doNotShowAgain">
 /// Show (checked) or hide the Do not show again check box.
 /// </param>
 /// <param name="checkBoxState">
 /// The checked state of the Do not show again check box.
 /// </param>
 /// <param name="textColor">
 /// A hexadecimal color code (web color code #FF0000 = Red)
 /// </param>
 /// <param name="formColor">
 /// A hexadecimal color code (web color code #FFFFFF = White)
 /// </param>
 /// <param name="topMost">
 /// State of the message box Z index (TopMost)
 /// </param>
 /// <returns>
 /// One of the MsgBoxResult values.
 /// The state of the Do not show again check box.
 /// </returns>
 public static MsgBoxResult Show(string message, string caption, MsgBoxButtons msgBoxButtons, MsgBoxIcon icon, MsgBoxDefaultButton defaultButton,
                                 MsgBoxCheckBox doNotShowAgain, out CheckState checkBoxState, string textColor, string formColor, MsgBoxOrder topMost)
 {
     return(new MsgBoxExForm(message, caption, msgBoxButtons, icon, defaultButton, doNotShowAgain, textColor, formColor, topMost).Show(out checkBoxState));
 }
Beispiel #6
0
 /// <summary>
 /// Displays a message box with specified text, caption, buttons, Icon, default button and a Do not show again Check box.
 /// To get the result of the check box, add: Syste.Windows.Forms.CheckState doNotShowAgain = System.Windows.Forms.CheckState.Indeterminate;
 /// Before the MsgBox call.
 /// </summary>
 /// <param name="message">
 /// The text to display in the message box.
 /// </param>
 /// <param name="caption">
 /// The text to display in the title bar of the message box.
 /// </param>
 /// <param name="msgBoxButtons">
 /// One of the MsgBoxButtons values that specifies which
 /// buttons to display.
 /// </param>
 /// <param name="icon">
 /// One of the MsgBoxIcon values that specifies which icon
 /// to display in the message box.
 /// <param name="defaultButton">
 ///  One of the MsgBoxDefaultButton values that specifies
 ///  the default button for the message box.
 /// </param>
 /// <param name="doNotShowAgain">
 /// Show (checked) or hide the Do not show again check box.
 /// </param>
 /// <param name="checkBoxState">
 /// The checked state of the Do not show again check box.
 /// </param>
 /// <returns>
 /// One of the MsgBoxResult values.
 /// The state of the Do not show again check box.
 /// </returns>
 public static MsgBoxResult Show(string message, string caption, MsgBoxButtons msgBoxButtons, MsgBoxIcon icon, MsgBoxDefaultButton defaultButton,
                                 MsgBoxCheckBox doNotShowAgain, out CheckState checkBoxState)
 {
     return(new MsgBoxExForm(message, caption, msgBoxButtons, icon, defaultButton, doNotShowAgain).Show(out checkBoxState));
 }