public static MsgBox ShowMessage(string msg, string title = "Message") { DialogQueue.Init(); MsgBox msgBox = new MsgBox(msg.Replace("\n", Environment.NewLine), title); DialogQueue.ShowDialog(msgBox); return(msgBox); }
public static MsgBox ShowMessage(string msg, string title = "Message") { //MessageBox.Show(msg, title, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0x40000); DialogQueue.Init(); MsgBox msgBox = new MsgBox(msg.Replace("\n", Environment.NewLine), title); DialogQueue.ShowDialog(msgBox); return(msgBox); }