private ViewResult ViewInstructions(InstructionsViewModel viewModel, OnlandVisualTrashAssessment ovta)
        {
            var viewData = new InstructionsViewData(CurrentPerson,
                                                    NeptunePage.GetNeptunePageByPageType(NeptunePageType.OVTAInstructions), ovta);

            return(RazorView <Instructions, InstructionsViewData, InstructionsViewModel>(viewData, viewModel));
        }
示例#2
0
 public InstructionsView(InstructionsViewModel viewModel)
 {
     InitializeComponent();
     if (!DesignerProperties.GetIsInDesignMode(this))
     {
         DataContext = viewModel;
     }
 }
        public ViewResult Instructions(int?ovtaID)  // route "overloaded" so we can handle revisiting and starting anew with the same route.
        {
            var viewModel = new InstructionsViewModel();

            var onlandVisualTrashAssessment = ovtaID.HasValue
                ? HttpRequestStorage.DatabaseEntities.OnlandVisualTrashAssessments.GetOnlandVisualTrashAssessment(
                ovtaID.Value)
                : null;

            return(ViewInstructions(viewModel, onlandVisualTrashAssessment));
        }
示例#4
0
        public InstructionsPopup(IMvxNavigationService nagivationService)
        {
            InitializeComponent();
            BindingContext = new InstructionsViewModel(nagivationService);

            if (System.Math.Max(App.ScreenHeight, App.ScreenWidth) < 500)
            {
                PopupTitle.FontSize             *= 0.75;
                InstructionsPopupTitle.FontSize *= 0.75;
                InstructionsText1.FontSize      *= 0.75;
                InstructionsText2.FontSize      *= 0.75;
                AreYouReadyText.FontSize        *= 0.75;
                ReadyButton.FontSize            *= 0.75;
            }
        }
		public override void CreateViewModels()
		{
			ServiceFactory.Events.GetEvent<CreateXZoneEvent>().Subscribe(OnCreateXZone);
			ServiceFactory.Events.GetEvent<EditXZoneEvent>().Subscribe(OnEditXZone);
			ServiceFactory.Events.GetEvent<CreateXDirectionEvent>().Subscribe(OnCreateXDirection);
			ServiceFactory.Events.GetEvent<EditXDirectionEvent>().Subscribe(OnEditXDirection);

			DevicesViewModel = new DevicesViewModel();
			ParameterTemplatesViewModel = new ParameterTemplatesViewModel();
			ZonesViewModel = new ZonesViewModel();
			DirectionsViewModel = new DirectionsViewModel();
			PumpStationsViewModel = new PumpStationsViewModel();
			GuardViewModel = new GuardViewModel();
			FiltersViewModel = new FiltersViewModel();
			DeviceLidraryViewModel = new LibraryViewModel();
			InstructionsViewModel = new InstructionsViewModel();
			OPCDevicesViewModel = new OPCDevicesViewModel();
			OPCZonesViewModel = new OPCZonesViewModel();
			OPCDirectionsViewModel = new OPCDirectionsViewModel();
			DiagnosticsViewModel = new DiagnosticsViewModel();
			DescriptorsViewModel = new DescriptorsViewModel();
			_planExtension = new GKPlanExtension(DevicesViewModel, ZonesViewModel, DirectionsViewModel);
		}
示例#6
0
		public override void CreateViewModels()
		{
			InstructionsViewModel = new InstructionsViewModel();
		}
示例#7
0
 public InstructionsModule()
 {
     _instructionsViewModel = new InstructionsViewModel();
 }
 public InstructionsMenuViewModel(InstructionsViewModel instructionsViewModel)
 {
     Context = instructionsViewModel;
 }