public static void ShowBox(Window win, string title, string msg) { win.Dispatcher.Invoke(() => { MsgBoxSimple box = new MsgBoxSimple(win, title, msg); box.ShowDialog(); }); }
public static void ShowBox(string title, string msg) { MsgBoxSimple box = new MsgBoxSimple(title, msg); box.ShowDialog(); }