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