예제 #1
0
		public MPTDeviceViewModel(GKMPTDevice mptDevice)
		{
			MPTDevice = mptDevice;
			Device = mptDevice.Device;
			MPTDevicePropertiesViewModel = new MPTDevicePropertiesViewModel(Device, false);
			ShowPropertiesCommand = new RelayCommand(OnShowProperties, CanShowProperties);
		}
예제 #2
0
		void OnEditProperties()
		{
			var mptDevicePropertiesViewModel = new MPTDevicePropertiesViewModel(SelectedDevice.Device, true);
			if (DialogService.ShowModalWindow(mptDevicePropertiesViewModel))
			{
				SelectedDevice.MPTDevicePropertiesViewModel.Update(false);
				ChangeIsInMPT(SelectedDevice.MPTDevice.Device, true);
				ServiceFactory.SaveService.GKChanged = true;
			}
		}