Ejemplo n.º 1
0
        public virtual void Process(UNConfigurationStepArgs args)
        {
            WindowWithBackStateConstructInfo constructInfo = args.StateConstructInfo;

            constructInfo.Header      = this.Header;
            constructInfo.GlobalTitle = this.GlobalTitle;
            constructInfo.ShortName   = this.ShortName;
            constructInfo.ContentVM   = this.GetContentVM(args);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        public virtual void Process(GetApplicationConfigStepArgs args)
        {
            Assert.IsNotNull(args.StepConstructInfo.ContentVM != null, "args.StepConstructInfo.ContentVM is not null");
            WindowWithBackStateConstructInfo stepInfo = args.StepConstructInfo;

            stepInfo.ResultState = new WindowStepState(
                stepInfo.GlobalTitle,
                stepInfo.Header,
                stepInfo.ShortName,
                stepInfo.ContentVM,
                stepInfo.SuperAction,
                stepInfo.StateSpecificHelpActions);
        }
Ejemplo n.º 4
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"));
        }
 public virtual void Process(GetStateForServicesConfigurationPipelineArgs args)
 {
   Assert.IsNotNull(args.ConfigConstructInfo.ResultControlVM, "args.ConfigConstructInfo.ResultControlVM");
   var resetAllCommand = new ActionCommandVM(args.ConfigConstructInfo.ResultControlVM.ResetAll, "Restore to actual values");
   WindowWithBackStateConstructInfo windowWithBackStateConstructInfo = args.StateConstructInfo;
   if (windowWithBackStateConstructInfo.StateSpecificHelpActions == null)
   {
     windowWithBackStateConstructInfo.StateSpecificHelpActions = new List<ActionCommandVM> { resetAllCommand };
   }
   else
   {
     windowWithBackStateConstructInfo.StateSpecificHelpActions.Add(resetAllCommand);
   }
 }