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