public override void CreateViewModels() { ServiceFactory.Layout.AddAlarmGroups(new AlarmGroupsViewModel()); ServiceFactory.Layout.AddToolbarItem(new GKConnectionIndicatorViewModel()); DevicesViewModel = new DevicesViewModel(); DeviceParametersViewModel = new DeviceParametersViewModel(); ZonesViewModel = new ZonesViewModel(); GuardZonesViewModel = new GuardZonesViewModel(); SKDZonesViewModel = new SKDZonesViewModel(); DirectionsViewModel = new DirectionsViewModel(); DelaysViewModel = new DelaysViewModel(); PimsViewModel = new PimsViewModel(); PumpStationsViewModel = new PumpStationsViewModel(); MPTsViewModel = new MPTsViewModel(); DoorsViewModel = new DoorsViewModel(); AlarmsViewModel = new AlarmsViewModel(); DaySchedulesViewModel = new DaySchedulesViewModel(); SchedulesViewModel = new SchedulesViewModel(); ServiceFactory.Events.GetEvent<ShowGKAlarmsEvent>().Unsubscribe(OnShowAlarms); ServiceFactory.Events.GetEvent<ShowGKAlarmsEvent>().Subscribe(OnShowAlarms); ServiceFactory.Events.GetEvent<ShowGKDebugEvent>().Unsubscribe(OnShowGKDebug); ServiceFactory.Events.GetEvent<ShowGKDebugEvent>().Subscribe(OnShowGKDebug); SubscribeShowDelailsEvent(); }
public DaySchedulesMenuViewModel(DaySchedulesViewModel daySchedulesViewModel) { Context = daySchedulesViewModel; }