示例#1
0
 void model_MessageEvent(string message)
 {
     System.Windows.Application.Current.Dispatcher.Invoke((Action)(() =>
     {
         LogMsgItems.Add(message.Replace("\r", "[CR]").Replace("\a", "[BEL]"));
     }));
 }
示例#2
0
 void model_EventNewDevice()
 {
     System.Windows.Application.Current.Dispatcher.Invoke((Action)(() =>
     {
         DeviceItems.Clear();
         model.GetDevices().ForEach(i => DeviceItems.Add(i));
         LogMsgItems.Add("New device founded");
     }));
 }
示例#3
0
 void ExecuteClearLogCmd()
 {
     LogMsgItems.Clear();
 }