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