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) { } }); }
public static void ShowBox(string title, string msg) { MsgBoxSimple box = new MsgBoxSimple(title, msg); box.ShowDialog(); }