示例#1
0
        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);
        }
示例#2
0
        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);
        }