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));
 }
예제 #2
0
        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));
        }
예제 #3
0
 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"));
 }
예제 #4
0
 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);
 }
예제 #5
0
        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);
        }
예제 #6
0
        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"));
        }
예제 #7
0
        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);
 }
예제 #9
0
 public static void Run(GetUCStepPipelineArgs args)
 {
     HatcherGuide<IPipelineManager>.Instance.InvokePipeline("getWindowStepForUserSettingsVisual", args);
 }
예제 #10
0
 public void Process(GetUCStepPipelineArgs args)
 {
     args.ConfigurationConstructInfo.ResultControlVM = new ConfigurationControlVM(
         args.ConfigurationConstructInfo.ConfigurationEntries,
         true);
 }
예제 #11
0
 protected virtual string GetGlobalTitle(GetUCStepPipelineArgs args)
 {
     var globalTitle = args.StateConstructInfo.GlobalTitle ?? this.GlobalTitle;
       return globalTitle.Replace("#plantName", args.UCServicePlantBox.RelatedPlantEx.Plant.HumanSupportingName);
 }
예제 #12
0
 public void Process(GetUCStepPipelineArgs args)
 {
     args.ConfigurationConstructInfo.ResultControlVM = new ConfigurationControlVM(
     args.ConfigurationConstructInfo.ConfigurationEntries,
     true);
 }