public override void CreateViewModels() { ServiceFactory.Events.GetEvent<SelectGKZoneEvent>().Subscribe(OnSelectGKZone); ServiceFactory.Events.GetEvent<SelectGKZonesEvent>().Subscribe(OnSelectGKZones); ServiceFactory.Events.GetEvent<SelectGKGuardZoneEvent>().Subscribe(OnSelectGKGuardZone); ServiceFactory.Events.GetEvent<SelectGKGuardZonesEvent>().Subscribe(OnSelectGKGuardZones); ServiceFactory.Events.GetEvent<SelectGKDelayEvent>().Subscribe(OnSelectGKDelay); ServiceFactory.Events.GetEvent<SelectGKDelaysEvent>().Subscribe(OnSelectGKDelays); ServiceFactory.Events.GetEvent<SelectGKDirectionEvent>().Subscribe(OnSelectGKDirection); ServiceFactory.Events.GetEvent<SelectGKDirectionsEvent>().Subscribe(OnSelectGKDirections); ServiceFactory.Events.GetEvent<SelectGKMPTEvent>().Subscribe(OnSelectGKMPT); ServiceFactory.Events.GetEvent<SelectGKMPTsEvent>().Subscribe(OnSelectGKMPTs); ServiceFactory.Events.GetEvent<SelectGKDoorEvent>().Subscribe(OnSelectGKDoor); ServiceFactory.Events.GetEvent<SelectGKDoorsEvent>().Subscribe(OnSelectGKDoors); ServiceFactory.Events.GetEvent<SelectGKDeviceEvent>().Subscribe(OnSelectGKDevice); ServiceFactory.Events.GetEvent<SelectGKDevicesEvent>().Subscribe(OnSelectGKDevices); ServiceFactory.Events.GetEvent<SelectGKPumpStationEvent>().Subscribe(OnSelectGKPumpStation); ServiceFactory.Events.GetEvent<SelectGKPumpStationsEvent>().Subscribe(OnSelectGKPumpStations); DevicesViewModel = new DevicesViewModel(); ParameterTemplatesViewModel = new ParameterTemplatesViewModel(); ZonesViewModel = new ZonesViewModel(); DirectionsViewModel = new DirectionsViewModel(); DelaysViewModel = new DelaysViewModel(); PumpStationsViewModel = new PumpStationsViewModel(); MPTsViewModel = new MPTsViewModel(); CodesViewModel = new CodesViewModel(); GuardZonesViewModel = new GuardZonesViewModel(); DoorsViewModel = new DoorsViewModel(); SKDZonesViewModel = new SKDZonesViewModel(); DeviceLidraryViewModel = new LibraryViewModel(); OPCViewModel = new OPCsViewModel(); DescriptorsViewModel = new DescriptorsViewModel(); DiagnosticsViewModel = new DiagnosticsViewModel(); _planExtension = new GKPlanExtension(); }
public OPCMenuViewModel(OPCsViewModel context) { Context = context; }