Exemplo n.º 1
0
 void model_MessageEvent(string message)
 {
     System.Windows.Application.Current.Dispatcher.Invoke((Action)(() =>
     {
         LogMsgItems.Add(message.Replace("\r", "[CR]").Replace("\a", "[BEL]"));
     }));
 }
Exemplo n.º 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");
     }));
 }
Exemplo n.º 3
0
 void ExecuteClearLogCmd()
 {
     LogMsgItems.Clear();
 }