Exemple #1
0
 public void ShowMsg(string title, string subTitle = "", string iconPath = "")
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         var m = new Msg { Owner = Application.Current.MainWindow };
         m.Show(title, subTitle, iconPath);
     });
 }
Exemple #2
0
 public void ShowMsg(string title, string subTitle, string iconPath)
 {
     Dispatcher.Invoke(new Action(() =>
     {
         var m = new Msg { Owner = GetWindow(this) };
         m.Show(title, subTitle, iconPath);
     }));
 }