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);
       }
 }
Example #2
0
   public WindowStepState(
 [NotNull] string globalTitle,
 [NotNull] string header,
 [NotNull] string shortName,
 object contentVM,
 ActionCommandVM superAction,
 List<ActionCommandVM> stateSpecificHelpActions)
   {
       Assert.ArgumentNotNullOrEmpty(shortName, "shortName");
         Assert.ArgumentNotNullOrEmpty(globalTitle, "globalTitle");
         Assert.ArgumentNotNullOrEmpty(header, "header");
         this.GlobalTitle = globalTitle;
         this.Header = header;
         this.ShortName = shortName;
         this.SuperAction = superAction ?? EmptyState.SuperAction;
         this.ContentVM = contentVM ?? DependencyProperty.UnsetValue;
         this.StateSpecificHelpActions = stateSpecificHelpActions ?? new List<ActionCommandVM>();
   }