/// <summary> /// Static method that creates the reminder window and displays the message window /// </summary> /// <param name="text">Control events</param> /// <param name="caption">Title of the window</param> /// <param name="showAgain">Indicates whether the message is re-displayed (it is a data passed by reference)</showAgain> /// <returns>Form result</returns> public static DialogResult Show(string text, string caption, ref bool showAgain) { MowayMessageBox mowayMessageBox = new MowayMessageBox(text, caption, MessageBoxButtons.OK, MessageBoxIcon.None, true); DialogResult result = mowayMessageBox.ShowDialog(); showAgain = mowayMessageBox.ShowAgain; return(result); }
/// <summary> /// Static method that creates the reminder window and displays the message window /// </summary> /// <param name="text">Control events</param> /// <param name="caption">Title of the window</param> /// <returns>Form result</returns> public static DialogResult Show(string text, string caption) { MowayMessageBox mowayMessageBox = new MowayMessageBox(text, caption, MessageBoxButtons.OK, MessageBoxIcon.None, false); return(mowayMessageBox.ShowDialog()); }