Beispiel #1
0
		void OnEdit()
		{
			var mptDeviceSelectationViewModel = new MPTDeviceSelectationViewModel(SelectedDevice.MPTDevice);
			if (ServiceFactory.DialogService.ShowModalWindow(mptDeviceSelectationViewModel))
			{
				UpdateMptDevice(mptDeviceSelectationViewModel.MptDevice);
			}
		}
Beispiel #2
0
		public void OnAdd()
		{
			var mptDeviceSelectationViewModel = new MPTDeviceSelectationViewModel();
			if (ServiceFactory.DialogService.ShowModalWindow(mptDeviceSelectationViewModel))
			{
				var mptDevice = mptDeviceSelectationViewModel.MptDevice;
				SelectedDevice = new MPTDeviceViewModel(mptDevice);
				MPT.MPTDevices.Add(mptDevice);
				UpdateMptDevice(mptDevice);
			}
		}