Пример #1
0
		void OnChangeLockControlDeviceExit()
		{
			var deviceSelectationViewModel = new DeviceSelectationViewModel(LockControlDeviceExit, GKManager.Devices.Where(x => x.DriverType == GKDriverType.RSR2_AM_1));
			if (DialogService.ShowModalWindow(deviceSelectationViewModel))
			{
				GKManager.ChangeLockControlDeviceExit(Door, deviceSelectationViewModel.SelectedDevice);
				ServiceFactory.SaveService.GKChanged = true;
			}
		}
Пример #2
0
		void OnChangeLockDeviceExit()
		{
			var deviceSelectationViewModel = new DeviceSelectationViewModel(LockDeviceExit, GKManager.Devices.Where(x => x.DriverType == GKDriverType.RSR2_RM_1 || x.DriverType == GKDriverType.RSR2_MVK8 || x.Driver.IsCardReaderOrCodeReader));
			if (DialogService.ShowModalWindow(deviceSelectationViewModel))
			{
				GKManager.ChangeLockDeviceExit(Door, deviceSelectationViewModel.SelectedDevice);
				ServiceFactory.SaveService.GKChanged = true;
			}
		}
Пример #3
0
		void OnChangeExitDevice()
		{
			var devices = new List<GKDevice>();
			if (Door.DoorType == GKDoorType.OneWay)
				devices = GKManager.Devices.Where(x => x.DriverType == GKDriverType.RSR2_AM_1).ToList();
			else
				devices = GKManager.Devices.Where(x => x.Driver.IsCardReaderOrCodeReader).ToList();
			var deviceSelectationViewModel = new DeviceSelectationViewModel(ExitDevice, devices);
			if (DialogService.ShowModalWindow(deviceSelectationViewModel))
			{
				GKManager.ChangeExitDevice(Door, deviceSelectationViewModel.SelectedDevice);
				ServiceFactory.SaveService.GKChanged = true;
			}
		}
Пример #4
0
		void OnChangeExitButton()
		{
			var devices = GKManager.Devices.Where(x => x.DriverType == GKDriverType.RSR2_AM_1).ToList();
			var deviceSelectationViewModel = new DeviceSelectationViewModel(ExitButton, devices);
			if (DialogService.ShowModalWindow(deviceSelectationViewModel))
			{
				GKManager.ChangeExitButtonDevice(Door, deviceSelectationViewModel.SelectedDevice);
				ServiceFactory.SaveService.GKChanged = true;
			}
		}
Пример #5
0
		void OnChangeEnterDevice()
		{
			var devices = GKManager.Devices.Where(x => x.Driver.IsCardReaderOrCodeReader).ToList();
			var deviceSelectationViewModel = new DeviceSelectationViewModel(EnterDevice, devices);
			if (DialogService.ShowModalWindow(deviceSelectationViewModel))
			{
				GKManager.ChangeEnterDevice(Door, deviceSelectationViewModel.SelectedDevice);
				ServiceFactory.SaveService.GKChanged = true;
			}
		}