public static WindowStepState Run([NotNull] GetStateForServicesConfigurationPipelineArgs args) { Assert.ArgumentNotNull(args, "args"); HatcherGuide <IPipelineManager> .Instance.InvokePipeline("getStateForServicesConfiguration", args); return(args.Aborted ? null : args.Result as WindowStepState ?? args.StateConstructInfo.ResultState); }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { //Find setting, related to UserConfiguration service var entryRelatedToService = args.ConfigConstructInfo.ConfigurationEntries.FirstOrDefault( x => ((ConfigurationPlayerService)x.RealPlayer).InfoSource is UserNotificationsService); Assert.IsNotNull(entryRelatedToService, "Entry cannot be unresloved"); this.FillPlayerWithConfigAction(entryRelatedToService.RealPlayer); }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { Assert.IsNotNull(args.ConfigConstructInfo.ResultControlVM, "args.ConfigurationVM"); WindowWithBackStateConstructInfo stateConstructInfo = args.StateConstructInfo; stateConstructInfo.ResultState = new WindowStepState( stateConstructInfo.GlobalTitle ?? this.GlobalTitle, stateConstructInfo.Header ?? this.Header, stateConstructInfo.ShortName ?? this.ShortName, args.ConfigConstructInfo.ResultControlVM, stateConstructInfo.SuperAction, stateConstructInfo.StateSpecificHelpActions); }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { Assert.IsNotNull(args.ConfigConstructInfo.ResultControlVM, "args.ConfigurationVM"); WindowWithBackStateConstructInfo stateConstructInfo = args.StateConstructInfo; stateConstructInfo.ResultState = new WindowStepState( stateConstructInfo.GlobalTitle ?? this.GlobalTitle, stateConstructInfo.Header ?? this.Header, stateConstructInfo.ShortName ?? this.ShortName, args.ConfigConstructInfo.ResultControlVM, stateConstructInfo.SuperAction, stateConstructInfo.StateSpecificHelpActions); }
public virtual void Process([NotNull] GetStateForServicesConfigurationPipelineArgs args) { ConfigurationControlConstructInfo configConstructInfo = args.ConfigConstructInfo; Assert.ArgumentNotNull(configConstructInfo.ConfigurationEntries, "args.ConfigConstructInfo.ConfigurationEntries"); configConstructInfo.ResultControlVM = new ConfigurationControlVM( configConstructInfo.ConfigurationEntries, configConstructInfo.EnableResetAllOption) { ConfigurationDescription = this.ConfigurationDescription, CalculateRebootOption = configConstructInfo.AllowReboot }; }
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); } }
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); } }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { args.ConfigConstructInfo.EnableResetAllOption = true; args.ConfigConstructInfo.AllowReboot = true; }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { args.ConfigConstructInfo.ConfigurationEntries = this.GetConfigurationEntriesFromServices(); }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { args.ConfigConstructInfo.EnableResetAllOption = true; args.ConfigConstructInfo.AllowReboot = true; }
public virtual void Process(GetStateForServicesConfigurationPipelineArgs args) { args.ConfigConstructInfo.ConfigurationEntries = this.GetConfigurationEntriesFromServices(); }