Ejemplo n.º 1
0
		public override void CreateViewModels()
		{
			ServiceFactory.Events.GetEvent<CreateZoneEvent>().Subscribe(OnCreateZone);
			ServiceFactory.Events.GetEvent<EditZoneEvent>().Subscribe(OnEditZone);
			ServiceFactory.Events.GetEvent<ShowDeviceEvent>().Subscribe(OnShowDevice);

			DevicesViewModel = new DevicesViewModel();
			DeviceParametersViewModel = new DeviceParametersViewModel();
			ParameterTemplatesViewModel = new ParameterTemplatesViewModel();
			ZonesViewModel = new ZonesViewModel();
			DirectionsViewModel = new DirectionsViewModel();
			GuardViewModel = new GuardViewModel();
			SimulationViewModel = new SimulationViewModel();
			_planExtension = new PlanExtension(DevicesViewModel, ZonesViewModel);
		}
Ejemplo n.º 2
0
		public SimulationMenuViewModel(SimulationViewModel context)
		{
			Context = context;
		}
Ejemplo n.º 3
0
		public SimulationViewModel()
		{
			Current = this;
			Menu = new SimulationMenuViewModel(this);
			ResetCommand = new RelayCommand(OnReset, CanReset);
		}