public Wizard(WizardPipeline wizardPipeline, ProcessorArgs args, [NotNull] Func <WizardArgs> createWizardArgs)
        {
            using (new ProfileSection("Create wizard instance", this))
            {
                ProfileSection.Argument("wizardPipeline", wizardPipeline);
                ProfileSection.Argument("args", args);

                WizardArgs = createWizardArgs();
                if (WizardArgs != null)
                {
                    WizardArgs.WizardWindow = this;
                }

                WizardPipeline = wizardPipeline;
                Args           = args;
                InitializeComponent();
                ProgressBar1Foreground = progressBar1.Foreground;
                if (!WinAppSettings.AppSysIsSingleThreaded.Value)
                {
                    CancelButton.IsCancel = false;
                    ResizeMode            = ResizeMode.CanMinimize;
                }
            }

            Initialize();
        }
Example #2
0
        public Wizard(WizardPipeline wizardPipeline, ProcessorArgs args, object[] parameters = null)
        {
            using (new ProfileSection("Create wizard instance", this))
            {
                ProfileSection.Argument("wizardPipeline", wizardPipeline);
                ProfileSection.Argument("args", args);
                ProfileSection.Argument("parameters", parameters);

                this.wizardPipeline = wizardPipeline;
                this.args           = args;
                this.InitializeComponent();
                this.progressBar1Foreground = this.progressBar1.Foreground;
                this.wizardParams           = parameters;
                if (!AppSettings.AppSysIsSingleThreaded.Value)
                {
                    this.CancelButton.IsCancel = false;
                    this.ResizeMode            = ResizeMode.CanMinimize;
                }
            }
        }