示例#1
0
        private void InstallWizard_Load(object sender, System.EventArgs args)
        {
            this.TopMost = true;
            this.Activate();
            this.TopMost = false;

            welcomeBox.Rtf = Helper.ToRtf(installer.package["/Welcome.rtf"].GetContents());
            welcomeBox.Hide();

            // Initialize the step list

            steps = new WizardStepList(this);
            steps.Add(this);

            serverAdminStep = new ServerAdminStep(this);
            AddStep(serverAdminStep);

            selectDatabaseStep = new SelectDatabaseStep(this);
            AddStep(selectDatabaseStep);

            appAccountStep = new ServiceAccountStep(this);
            AddStep(appAccountStep);

            actionRequestStep = new ActionRequestStep(this);
            AddStep(actionRequestStep);

            installStep = new InstallStep(this);
            AddStep(installStep);

            steps.StepTo(steps.FirstStep, true);
        }
示例#2
0
 private void AddStep(Form form)
 {
     form.TopLevel = false;
     form.Hide();
     Controls.Add(form);
     Center(form);
     steps.Add(form as IWizardStep);
 }