public MPTDeviceViewModel(GKMPTDevice mptDevice) { MPTDevice = mptDevice; Device = mptDevice.Device; MPTDevicePropertiesViewModel = new MPTDevicePropertiesViewModel(Device, false); ShowPropertiesCommand = new RelayCommand(OnShowProperties, CanShowProperties); }
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; } }