예제 #1
0
		public InstructionViewModel(XDevice device, XZone zone, XDirection direction, XAlarmType alarmType)
		{
			
			AlarmType = alarmType;

			Instruction = FindInstruction(device, zone, direction);
			Title = Instruction != null ? Instruction.Name : "";
			HasContent = Instruction != null;
			
		}
예제 #2
0
		void OnShowAlarms(XAlarmType? alarmType)
		{
			AlarmsViewModel.Sort(alarmType);
		}
예제 #3
0
파일: Alarm.cs 프로젝트: saeednazari/Rubezh
		public Alarm(XAlarmType alarmType, XDirection direction)
		{
			AlarmType = alarmType;
			Direction = direction;
		}
예제 #4
0
파일: Alarm.cs 프로젝트: saeednazari/Rubezh
		public Alarm(XAlarmType alarmType, XZone zone)
		{
			AlarmType = alarmType;
			Zone = zone;
		}
예제 #5
0
파일: Alarm.cs 프로젝트: saeednazari/Rubezh
		public Alarm(XAlarmType alarmType, XDevice device)
		{
			AlarmType = alarmType;
			Device = device;
		}
예제 #6
0
		public void Sort(XAlarmType? alarmType)
		{
			sortingAlarmType = alarmType;
			UpdateAlarms();
		}
예제 #7
0
		public AlarmGroupViewModel(XAlarmType alarmType)
		{
			Alarms = new List<AlarmViewModel>();
			ShowCommand = new RelayCommand(OnShowCommand);
			AlarmType = alarmType;
		}