/// <summary> /// displays 2 buttons: Yes, No in a red Alarm window with STOP icon /// </summary> public static bool AskAlarm(Form i_Owner, string s_Text) { frmMsgBox i_Box = new frmMsgBox(i_Owner, s_Text, "SqlBuilder", eIcon.Alarm, MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button2); return (i_Box.ShowDialog(i_Owner) == DialogResult.Yes); }
/// <summary> /// Display OK Button and Warning Icon /// </summary> public static void Warn(Form i_Owner, string s_Text) { frmMsgBox i_Box = new frmMsgBox(i_Owner, s_Text, "SqlBuilder", eIcon.Warning, MessageBoxButtons.OK, MessageBoxDefaultButton.Button1); i_Box.ShowDialog(i_Owner); }
/// <summary> /// displays 3 buttons: Yes, No, Cancel in a red Alarm window with STOP icon /// </summary> public static DialogResult Ask3Alarm(Form i_Owner, string s_Text) { frmMsgBox i_Box = new frmMsgBox(i_Owner, s_Text, "SqlBuilder", eIcon.Alarm, MessageBoxButtons.YesNoCancel, MessageBoxDefaultButton.Button3); return i_Box.ShowDialog(i_Owner); }