|
|
@@ -46,14 +46,14 @@ namespace BPASmartClient.ViewModel |
|
|
|
LogDataGrid = new ObservableCollection<LogModel>(); |
|
|
|
MessageLog.GetInstance.InfoNotify = new Action<string>((s) => |
|
|
|
{ |
|
|
|
System.Windows.Application.Current.Dispatcher.Invoke((Action)(() => |
|
|
|
System.Windows.Application.Current?.Dispatcher.Invoke((Action)(() => |
|
|
|
{ |
|
|
|
LogDataGrid.Insert(0,new LogModel { message = s,type = "Info" }); |
|
|
|
})); |
|
|
|
}); |
|
|
|
MessageLog.GetInstance.ExInfoNotify = new Action<string>((s) => |
|
|
|
{ |
|
|
|
System.Windows.Application.Current.Dispatcher.Invoke((Action)(() => |
|
|
|
System.Windows.Application.Current?.Dispatcher.Invoke((Action)(() => |
|
|
|
{ |
|
|
|
LogDataGrid.Insert(0,new LogModel { message = s,type = "Error" }); |
|
|
|
})); |
|
|
|