public virtual void Process(GetUCStepPipelineArgs args) { ConfigurationControlConstructInfo configurationConstructInfo = args.ConfigurationConstructInfo; if (configurationConstructInfo.ConfigurationEntries == null) { configurationConstructInfo.ConfigurationEntries = new List<ConfigurationEntryBaseVM>(); } configurationConstructInfo.ConfigurationEntries.AddRange(this.GetSettingVMs(args.UCServicePlantBox)); }
public virtual void Process(GetUCStepPipelineArgs args) { ConfigurationControlConstructInfo configurationConstructInfo = args.ConfigurationConstructInfo; if (configurationConstructInfo.ConfigurationEntries == null) { configurationConstructInfo.ConfigurationEntries = new List <ConfigurationEntryBaseVM>(); } configurationConstructInfo.ConfigurationEntries.AddRange(this.GetSettingVMs(args.UCServicePlantBox)); }
public virtual void Process(GetUCStepPipelineArgs args) { ConfigurationControlVM contentVM = args.ConfigurationConstructInfo.ResultControlVM; Assert.IsNotNull(contentVM, "Content VM can't be null at this stage"); ICommand command = contentVM.ResetAll; WindowWithBackStateConstructInfo stateInfo = args.StateConstructInfo; if (stateInfo.StateSpecificHelpActions == null) { stateInfo.StateSpecificHelpActions = new List<ActionCommandVM>(); } stateInfo.StateSpecificHelpActions.Add(new ActionCommandVM(command, "Reset setting values")); }
public virtual void Process(GetUCStepPipelineArgs args) { Assert.IsNotNull(args.ConfigurationConstructInfo.ResultControlVM, "args.ConfigurationConstructInfo.ResultControlVM"); WindowWithBackStateConstructInfo stateInfo = args.StateConstructInfo; stateInfo.ResultState = new WindowStepState( this.GetGlobalTitle(args), stateInfo.Header ?? this.Header, stateInfo.ShortName ?? this.ShortName, args.ConfigurationConstructInfo.ResultControlVM, stateInfo.SuperAction, stateInfo.StateSpecificHelpActions); }
public virtual void Process(GetUCStepPipelineArgs args) { ConfigurationControlVM contentVM = args.ConfigurationConstructInfo.ResultControlVM; Assert.IsNotNull(contentVM, "Content VM can't be null at this stage"); ICommand command = contentVM.ResetAll; WindowWithBackStateConstructInfo stateInfo = args.StateConstructInfo; if (stateInfo.StateSpecificHelpActions == null) { stateInfo.StateSpecificHelpActions = new List <ActionCommandVM>(); } stateInfo.StateSpecificHelpActions.Add(new ActionCommandVM(command, "Reset setting values")); }
protected virtual string GetGlobalTitle(GetUCStepPipelineArgs args) { var globalTitle = args.StateConstructInfo.GlobalTitle ?? this.GlobalTitle; return(globalTitle.Replace("#plantName", args.UCServicePlantBox.RelatedPlantEx.Plant.HumanSupportingName)); }
public static void Run(GetUCStepPipelineArgs args) { HatcherGuide <IPipelineManager> .Instance.InvokePipeline("getWindowStepForUserSettingsVisual", args); }
public static void Run(GetUCStepPipelineArgs args) { HatcherGuide<IPipelineManager>.Instance.InvokePipeline("getWindowStepForUserSettingsVisual", args); }
public void Process(GetUCStepPipelineArgs args) { args.ConfigurationConstructInfo.ResultControlVM = new ConfigurationControlVM( args.ConfigurationConstructInfo.ConfigurationEntries, true); }
protected virtual string GetGlobalTitle(GetUCStepPipelineArgs args) { var globalTitle = args.StateConstructInfo.GlobalTitle ?? this.GlobalTitle; return globalTitle.Replace("#plantName", args.UCServicePlantBox.RelatedPlantEx.Plant.HumanSupportingName); }