void OnGKPropertyChanged(GKPropertyChangedCallback gkPropertyChangedCallback) { if (gkPropertyChangedCallback != null) { ApplicationService.Invoke(() => { var device = GKManager.Devices.FirstOrDefault(x => x.UID == gkPropertyChangedCallback.ObjectUID); if (device != null) { device.Properties = gkPropertyChangedCallback.DeviceProperties; ServiceFactoryBase.Events.GetEvent<GKObjectsPropertyChangedEvent>().Publish(null); } }); } }
private static void GKPropertyChangedEvent(GKPropertyChangedCallback obj) { }
void OnGKObjectsPropertyChanged(GKPropertyChangedCallback gkPropertyChangedCallback) { DevicePropertiesViewModel = new DevicePropertiesViewModel(Device); OnPropertyChanged(() => DevicePropertiesViewModel); }