예제 #1
0
		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);
					}
				});
			}
		}
예제 #2
0
		private static void GKPropertyChangedEvent(GKPropertyChangedCallback obj)
		{

		}
예제 #3
0
		void OnGKObjectsPropertyChanged(GKPropertyChangedCallback gkPropertyChangedCallback)
		{
			DevicePropertiesViewModel = new DevicePropertiesViewModel(Device);
			OnPropertyChanged(() => DevicePropertiesViewModel);
		}