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; }
void OnShowAlarms(XAlarmType? alarmType) { AlarmsViewModel.Sort(alarmType); }
public Alarm(XAlarmType alarmType, XDirection direction) { AlarmType = alarmType; Direction = direction; }
public Alarm(XAlarmType alarmType, XZone zone) { AlarmType = alarmType; Zone = zone; }
public Alarm(XAlarmType alarmType, XDevice device) { AlarmType = alarmType; Device = device; }
public void Sort(XAlarmType? alarmType) { sortingAlarmType = alarmType; UpdateAlarms(); }
public AlarmGroupViewModel(XAlarmType alarmType) { Alarms = new List<AlarmViewModel>(); ShowCommand = new RelayCommand(OnShowCommand); AlarmType = alarmType; }