Exemple #1
0
 public void AddNgMsg(string NgMsg)
 {
     App.Current.Dispatcher.Invoke(new Action(() =>
     {
         NgMessage.Add(NgMsg);
     }));
     OnPropertyChanged(nameof(ShowNgMessage));
 }
Exemple #2
0
 public void AddNgMsg(List <string> NgMsgs)
 {
     App.Current.Dispatcher.Invoke(new Action(() =>
     {
         foreach (var msg in NgMsgs)
         {
             NgMessage.Add(msg);
         }
     }));
     OnPropertyChanged(nameof(ShowNgMessage));
 }