protected virtual void ConfigureServices(object o) { WindowStepState servicesConfigurationState = this.GetStateFromPipeline(); Assert.IsNotNull(servicesConfigurationState, "Pipeline hasn't returned state object"); WindowWithBackVM.GoAheadWithBackIfPossible(servicesConfigurationState); }
protected virtual WindowStepState GetInitialStep(GetMainVMPipelineArgs args) { var step = new WindowStepState( this.GlobalTitle.GetValueOrDefault("Tray Garden -- Plants configuration"), this.Header.GetValueOrDefault("Here you configure plants"), this.ShortName.GetValueOrDefault("plants config"), args.PlantsConfigVM, args.SuperAction, args.StateSpecificHelpActions); return(step); }
protected virtual void ConfigureApplication(object obj) { WindowStepState applicationConfigStep = this.GetStateFromPipeline(); if (applicationConfigStep == null) { HatcherGuide <IUIManager> .Instance.OKMessageBox( "Application settings", "Something is wrong. Tell app developer that he is stupid and the pipeline didn't return proper step object.", MessageBoxImage.Error); Log.Warn("GetApplicationConfigStep pipeline hasn't returned proper object", this); return; } WindowWithBackVM.GoAheadWithBackIfPossible(applicationConfigStep); }
protected virtual void ShowConfigurationWindow(object obj) { WindowStepState windowStepState = UNConfigurationStepPipeline.Run(); WindowWithBackVM.GoAheadWithBackIfPossible(windowStepState); }