Пример #1
0
		public override void CreateViewModels()
		{
			ServiceFactory.Layout.AddAlarmGroups(new AlarmGroupsViewModel());
			ServiceFactory.Events.GetEvent<ShowAlarmsEvent>().Subscribe(OnShowAlarms);
			AlarmsViewModel = new AlarmsViewModel();
			AlarmWatcher = new AlarmWatcher();
		}
Пример #2
0
		public AlarmsViewModel()
		{
            Current = this;
			ResetAllCommand = new RelayCommand(OnResetAll, CanResetAll);
			RemoveAllFromIgnoreListCommand = new RelayCommand(OnRemoveAllFromIgnoreList, CanRemoveAllFromIgnoreList);
			AddToIgnoreAllDevicesInFireCommand = new RelayCommand(OnAddToIgnoreAllDevicesInFire, CanAddToIgnoreAllDevicesInFire);

			allAlarms = new List<Alarm>();
			Alarms = new ObservableCollection<AlarmViewModel>();
		}