private void ProcessDeviceStatus(DeviceStatusPackage package) { if (package.Content?.DeviceStatus.AreaId == AreaDeviceId) { Dispatcher.BeginInvoke((Action)(() => { modeControl.DeviceStatusChanged(package.Content.DeviceStatus); })); } }
private void ProcessDeviceStatus(DeviceStatusPackage package) { Console.WriteLine("DeviceStatusChanged Commnad {0}", package.Type); if (package.Content?.DeviceStatus.AreaId == AreaDeviceId) { Dispatcher.BeginInvoke((Action)(() => { modeControl.DeviceStatusChanged(package.Content.DeviceStatus); })); } }