|
@@ -20,6 +20,40 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel |
|
|
public MainViewModel() |
|
|
public MainViewModel() |
|
|
{ |
|
|
{ |
|
|
NavChangedCommand = new RelayCommand<object>(DoNavChanged); |
|
|
NavChangedCommand = new RelayCommand<object>(DoNavChanged); |
|
|
|
|
|
BPASmartClient.Message. MessageLog.GetInstance.InfoNotify = new Action<string>((o) => |
|
|
|
|
|
{ |
|
|
|
|
|
Application.Current?.Dispatcher?.Invoke(() => |
|
|
|
|
|
{ |
|
|
|
|
|
//ff20aefe |
|
|
|
|
|
var temp = new MessageModel() |
|
|
|
|
|
{ |
|
|
|
|
|
LogInfo = o, |
|
|
|
|
|
Forground = new SolidColorBrush(Color.FromArgb(255, 32, 174, 254)) |
|
|
|
|
|
}; |
|
|
|
|
|
if (DebugLogViewModel.MessageModels.Count > 0) |
|
|
|
|
|
DebugLogViewModel.MessageModels.Insert(0, temp); |
|
|
|
|
|
else |
|
|
|
|
|
DebugLogViewModel.MessageModels.Add(temp); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BPASmartClient.Message.MessageLog.GetInstance.ExInfoNotify = new Action<string>((o) => |
|
|
|
|
|
{ |
|
|
|
|
|
Application.Current?.Dispatcher?.Invoke(() => |
|
|
|
|
|
{ |
|
|
|
|
|
//FFF53F62 |
|
|
|
|
|
var temp = new MessageModel() |
|
|
|
|
|
{ |
|
|
|
|
|
LogInfo = o, |
|
|
|
|
|
Forground = new SolidColorBrush(Color.FromArgb(255, 245, 63, 98)) |
|
|
|
|
|
}; |
|
|
|
|
|
if (DebugLogViewModel.MessageModels.Count > 0) |
|
|
|
|
|
DebugLogViewModel.MessageModels.Insert(0, temp); |
|
|
|
|
|
else |
|
|
|
|
|
DebugLogViewModel.MessageModels.Add(temp); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
BPA.Helper.MessageLog.GetInstance.NotifyShow = new Action<string>((o) => |
|
|
BPA.Helper.MessageLog.GetInstance.NotifyShow = new Action<string>((o) => |
|
|
{ |
|
|
{ |
|
|
Application.Current?.Dispatcher?.Invoke(() => |
|
|
Application.Current?.Dispatcher?.Invoke(() => |
|
|