예제 #1
0
 public static void ShowBox(Window win, string title, string msg)
 {
     win.Dispatcher.Invoke(() => {
         try {
             MsgBoxSimple box = new MsgBoxSimple(win, title, msg);
             box.ShowDialog();
         }
         catch (Exception) { }
     });
 }
예제 #2
0
        public static void ShowBox(string title, string msg)
        {
            MsgBoxSimple box = new MsgBoxSimple(title, msg);

            box.ShowDialog();
        }