public WizardPage Add(WizardPage value)
        {
            // Use base class to process actual collection operation
            base.List.Add(value as object);

            return value;
        }
Exemple #2
0
        protected override void OnWizardPageEnter(Crownwood.Magic.Controls.WizardPage wp,
                                                  Crownwood.Magic.Controls.WizardControl wc)
        {
            // Asking for licence terms by entering page?
            if (wp.Name == "wizardLegal")
            {
                if (this.radioButton4.Checked)
                {
                    wc.EnableNextButton = WizardControl.Status.Default;
                }
                else
                {
                    wc.EnableNextButton = WizardControl.Status.No;
                }
            }

            // Started the installation process by entering page 5?
            if (wp.Name == "wizardInstall")
            {
                // Kick off a timer to represent progress
                installCount          = 0;
                installTimer          = new Timer();
                installTimer.Interval = 250;
                installTimer.Tick    += new EventHandler(OnProgressTick);
                installTimer.Start();
            }
        }
Exemple #3
0
 protected override void OnWizardPageLeave(Crownwood.Magic.Controls.WizardPage wp,
                                           Crownwood.Magic.Controls.WizardControl wc)
 {
     // Leaving page means we have to restore default status of next button
     if (wp.Name == "wizardLegal")
     {
         // Default the next button to disable
         wc.EnableNextButton = WizardControl.Status.Default;
     }
 }
        public WizardPage Add(TabPage value)
        {
            // Create a WizardPage from the TabPage
            WizardPage wp = new WizardPage();
            wp.Title = value.Title;
            wp.Control = value.Control;
            wp.ImageIndex = value.ImageIndex;
            wp.ImageList = value.ImageList;
            wp.Icon = value.Icon;
            wp.Selected = value.Selected;
            wp.StartFocus = value.StartFocus;

            return Add(wp);
        }
Exemple #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.wizardStartPage = new Crownwood.Magic.Controls.WizardPage();
     this.label3          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.label1          = new System.Windows.Forms.Label();
     this.wizardInfo1     = new Crownwood.Magic.Controls.WizardPage();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.radioButton3    = new System.Windows.Forms.RadioButton();
     this.radioButton2    = new System.Windows.Forms.RadioButton();
     this.radioButton1    = new System.Windows.Forms.RadioButton();
     this.wizardLegal     = new Crownwood.Magic.Controls.WizardPage();
     this.radioButton5    = new System.Windows.Forms.RadioButton();
     this.radioButton4    = new System.Windows.Forms.RadioButton();
     this.label4          = new System.Windows.Forms.Label();
     this.textBox1        = new System.Windows.Forms.TextBox();
     this.wizardWarn      = new Crownwood.Magic.Controls.WizardPage();
     this.label6          = new System.Windows.Forms.Label();
     this.label5          = new System.Windows.Forms.Label();
     this.wizardInstall   = new Crownwood.Magic.Controls.WizardPage();
     this.label7          = new System.Windows.Forms.Label();
     this.progressBar1    = new System.Windows.Forms.ProgressBar();
     this.wizardFinish    = new Crownwood.Magic.Controls.WizardPage();
     this.label10         = new System.Windows.Forms.Label();
     this.wizardInfo2     = new Crownwood.Magic.Controls.WizardPage();
     this.label9          = new System.Windows.Forms.Label();
     this.textBox3        = new System.Windows.Forms.TextBox();
     this.label8          = new System.Windows.Forms.Label();
     this.textBox2        = new System.Windows.Forms.TextBox();
     this.wizardStartPage.SuspendLayout();
     this.wizardInfo1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.wizardLegal.SuspendLayout();
     this.wizardWarn.SuspendLayout();
     this.wizardInstall.SuspendLayout();
     this.wizardFinish.SuspendLayout();
     this.wizardInfo2.SuspendLayout();
     this.SuspendLayout();
     //
     // wizardControl
     //
     this.wizardControl.AssignDefaultButton = true;
     this.wizardControl.Profile             = Crownwood.Magic.Controls.WizardControl.Profiles.Install;
     this.wizardControl.SelectedIndex       = 0;
     this.wizardControl.Size    = new System.Drawing.Size(410, 343);
     this.wizardControl.Title   = "Sample Wizard using Install Profile";
     this.wizardControl.Visible = true;
     this.wizardControl.WizardPages.AddRange(new Crownwood.Magic.Controls.WizardPage[] {
         this.wizardStartPage,
         this.wizardLegal,
         this.wizardInfo1,
         this.wizardInfo2,
         this.wizardWarn,
         this.wizardInstall,
         this.wizardFinish
     });
     //
     // wizardStartPage
     //
     this.wizardStartPage.CaptionTitle = "Sample Description";
     this.wizardStartPage.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label3,
         this.label2,
         this.label1
     });
     this.wizardStartPage.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardStartPage.FullPage = false;
     this.wizardStartPage.Name     = "wizardStartPage";
     this.wizardStartPage.Size     = new System.Drawing.Size(410, 189);
     this.wizardStartPage.SubTitle = "Start page explaining what this sample demonstrates";
     this.wizardStartPage.TabIndex = 3;
     this.wizardStartPage.Title    = "Start";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 136);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(400, 64);
     this.label3.TabIndex = 3;
     this.label3.Text     = @"Therefore on the second to last page only the 'Cancel' button is available and used to abort the installation. On the last page only the 'Close' button is available as the only possible action left is to exit the dialog.  On preceding pages the 'Next' and 'Back' buttons are displayed when appropriate as well as the 'Cancel' button.";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 72);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(400, 64);
     this.label2.TabIndex = 2;
     this.label2.Text     = @"In this profile the last two pages have special significance. The second to last is used for conducting the actual installation. The last page is used to report the success or failure of the install. All other preceding pages are for information gathering prior to the install attempt.";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(400, 56);
     this.label1.TabIndex = 1;
     this.label1.Text     = @"The WizardControl and associated WizardDialog can be used in three different profiles depending on the type of Wizard required. Available options are 'Install', 'Configure' and 'Controller'. This sample is intended to demonstrate use of the 'Install' profile.";
     //
     // wizardInfo1
     //
     this.wizardInfo1.CaptionTitle = "Gather Info 1";
     this.wizardInfo1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.groupBox1
     });
     this.wizardInfo1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardInfo1.FullPage = false;
     this.wizardInfo1.Name     = "wizardInfo1";
     this.wizardInfo1.Selected = false;
     this.wizardInfo1.Size     = new System.Drawing.Size(410, 269);
     this.wizardInfo1.SubTitle = "This is the first of two pages for gathering input";
     this.wizardInfo1.TabIndex = 4;
     this.wizardInfo1.Title    = "Info1";
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.radioButton3,
         this.radioButton2,
         this.radioButton1
     });
     this.groupBox1.Location = new System.Drawing.Point(24, 16);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(160, 152);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Example of Selection";
     //
     // radioButton3
     //
     this.radioButton3.Location = new System.Drawing.Point(32, 112);
     this.radioButton3.Name     = "radioButton3";
     this.radioButton3.TabIndex = 2;
     this.radioButton3.Text     = "Debug Install";
     //
     // radioButton2
     //
     this.radioButton2.Location = new System.Drawing.Point(32, 72);
     this.radioButton2.Name     = "radioButton2";
     this.radioButton2.TabIndex = 1;
     this.radioButton2.Text     = "Server Install";
     //
     // radioButton1
     //
     this.radioButton1.Location = new System.Drawing.Point(32, 32);
     this.radioButton1.Name     = "radioButton1";
     this.radioButton1.TabIndex = 0;
     this.radioButton1.Text     = "Client Install";
     //
     // wizardLegal
     //
     this.wizardLegal.CaptionTitle = "Standard Legal Notice";
     this.wizardLegal.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.radioButton5,
         this.radioButton4,
         this.label4,
         this.textBox1
     });
     this.wizardLegal.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardLegal.FullPage = false;
     this.wizardLegal.Name     = "wizardLegal";
     this.wizardLegal.Selected = false;
     this.wizardLegal.Size     = new System.Drawing.Size(410, 269);
     this.wizardLegal.SubTitle = "Force the user to agree a license agreement for product";
     this.wizardLegal.TabIndex = 5;
     this.wizardLegal.Title    = "Legal";
     //
     // radioButton5
     //
     this.radioButton5.Checked         = true;
     this.radioButton5.Location        = new System.Drawing.Point(216, 160);
     this.radioButton5.Name            = "radioButton5";
     this.radioButton5.Size            = new System.Drawing.Size(88, 24);
     this.radioButton5.TabIndex        = 3;
     this.radioButton5.TabStop         = true;
     this.radioButton5.Text            = "I Disagree";
     this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton5_CheckedChanged);
     //
     // radioButton4
     //
     this.radioButton4.Location        = new System.Drawing.Point(120, 160);
     this.radioButton4.Name            = "radioButton4";
     this.radioButton4.Size            = new System.Drawing.Size(72, 24);
     this.radioButton4.TabIndex        = 2;
     this.radioButton4.Text            = "I Agree";
     this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(32, 8);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 1;
     this.label4.Text     = "Must Agree Terms";
     //
     // textBox1
     //
     this.textBox1.Location  = new System.Drawing.Point(32, 32);
     this.textBox1.Multiline = true;
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(352, 120);
     this.textBox1.TabIndex  = 0;
     this.textBox1.Text      = "You must select \'I Agree\' before the \'Next\' button will enable itself. This custo" +
                               "m action is not part of the WizardControl, see the sample code which is trivial." +
                               "";
     //
     // wizardWarn
     //
     this.wizardWarn.CaptionTitle = "Warning, about to install";
     this.wizardWarn.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label6,
         this.label5
     });
     this.wizardWarn.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardWarn.FullPage = false;
     this.wizardWarn.Name     = "wizardWarn";
     this.wizardWarn.Selected = false;
     this.wizardWarn.Size     = new System.Drawing.Size(410, 269);
     this.wizardWarn.SubTitle = "This warns user that installation is about to begin";
     this.wizardWarn.TabIndex = 6;
     this.wizardWarn.Title    = "Warn";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(40, 56);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(360, 64);
     this.label6.TabIndex = 1;
     this.label6.Text     = "Warn user that pressing \'Next\' will begin installation process.";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(40, 16);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(280, 24);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Last page before installation.";
     //
     // wizardInstall
     //
     this.wizardInstall.CaptionTitle = "Installing";
     this.wizardInstall.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label7,
         this.progressBar1
     });
     this.wizardInstall.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardInstall.FullPage = false;
     this.wizardInstall.Name     = "wizardInstall";
     this.wizardInstall.Selected = false;
     this.wizardInstall.Size     = new System.Drawing.Size(410, 269);
     this.wizardInstall.SubTitle = "Perform some fake installation process";
     this.wizardInstall.TabIndex = 7;
     this.wizardInstall.Title    = "Install";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(40, 16);
     this.label7.Name     = "label7";
     this.label7.TabIndex = 1;
     this.label7.Text     = "Fake Installation";
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(40, 48);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(328, 24);
     this.progressBar1.TabIndex = 0;
     //
     // wizardFinish
     //
     this.wizardFinish.CaptionTitle = "Intall Complete";
     this.wizardFinish.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label10
     });
     this.wizardFinish.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardFinish.FullPage = false;
     this.wizardFinish.Name     = "wizardFinish";
     this.wizardFinish.Selected = false;
     this.wizardFinish.Size     = new System.Drawing.Size(410, 269);
     this.wizardFinish.SubTitle = "This page gives the success or failure of attempting the previous install process" +
                                  "";
     this.wizardFinish.TabIndex = 8;
     this.wizardFinish.Title    = "Finished";
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(32, 16);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(304, 104);
     this.label10.TabIndex = 0;
     this.label10.Text     = "Installation has completed with success.";
     //
     // wizardInfo2
     //
     this.wizardInfo2.CaptionTitle = "Gather Info 2";
     this.wizardInfo2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label9,
         this.textBox3,
         this.label8,
         this.textBox2
     });
     this.wizardInfo2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardInfo2.FullPage = false;
     this.wizardInfo2.Name     = "wizardInfo2";
     this.wizardInfo2.Selected = false;
     this.wizardInfo2.Size     = new System.Drawing.Size(410, 269);
     this.wizardInfo2.SubTitle = "This is the second of two pages for gathering input";
     this.wizardInfo2.TabIndex = 9;
     this.wizardInfo2.Title    = "Info2";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(48, 80);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(136, 23);
     this.label9.TabIndex = 3;
     this.label9.Text     = "Enter Company Name";
     //
     // textBox3
     //
     this.textBox3.Location = new System.Drawing.Point(48, 104);
     this.textBox3.Name     = "textBox3";
     this.textBox3.Size     = new System.Drawing.Size(160, 21);
     this.textBox3.TabIndex = 2;
     this.textBox3.Text     = "ACNE Corp.";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(48, 16);
     this.label8.Name     = "label8";
     this.label8.TabIndex = 1;
     this.label8.Text     = "Enter Username";
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(48, 40);
     this.textBox2.Name     = "textBox2";
     this.textBox2.Size     = new System.Drawing.Size(160, 21);
     this.textBox2.TabIndex = 0;
     this.textBox2.Text     = "Anon";
     //
     // SampleWizard
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(410, 343);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.wizardControl
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "SampleWizard";
     this.TitleMode       = Crownwood.Magic.Forms.WizardDialog.TitleModes.Steps;
     this.wizardStartPage.ResumeLayout(false);
     this.wizardInfo1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.wizardLegal.ResumeLayout(false);
     this.wizardWarn.ResumeLayout(false);
     this.wizardInstall.ResumeLayout(false);
     this.wizardFinish.ResumeLayout(false);
     this.wizardInfo2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #6
0
        public WizardControl()
        {
            InitializeComponent();

            // No page currently selected
            _selectedPage = null;

            // Hook into tab control events
            _tabControl.SelectionChanged += new EventHandler(OnTabSelectionChanged);

            // Create our collection of wizard pages
            _wizardPages = new WizardPageCollection();

            // Hook into collection events
            _wizardPages.Cleared += new Collections.CollectionClear(OnWizardCleared);
            _wizardPages.Inserted += new Collections.CollectionChange(OnWizardInserted);
            _wizardPages.Removed += new Collections.CollectionChange(OnWizardRemoved);

            // Hook into drawing events
            _panelTop.Resize += new EventHandler(OnRepaintPanels);
            _panelTop.Paint += new PaintEventHandler(OnPaintTopPanel);
            _panelBottom.Resize += new EventHandler(OnRepaintPanels);
            _panelBottom.Paint += new PaintEventHandler(OnPaintBottomPanel);

            // Initialize state
            _showUpdate = _enableUpdate = Status.Default;
            _showCancel = _enableUpdate = Status.Default;
            _showBack = _enableBack = Status.Default;
            _showNext = _enableNext = Status.Default;
            _showFinish = _enableFinish = Status.Default;
            _showClose = _enableClose = Status.Default;
            _showHelp = _enableHelp = Status.Default;

            // Default properties
            ResetProfile();
            ResetTitle();
            ResetTitleFont();
            ResetTitleColor();
            ResetSubTitleFont();
            ResetSubTitleColor();
            ResetPicture();
            ResetAssignDefaultButton();

            // Position and enable/disable control button state
            UpdateControlButtons();
        }
Exemple #7
0
 public virtual void OnWizardPageLeave(WizardPage wp)
 {
     if (WizardPageLeave != null)
         WizardPageLeave(wp, this);
 }
Exemple #8
0
 public virtual void OnWizardPageEnter(WizardPage wp)
 {
     if (WizardPageEnter != null)
         WizardPageEnter(wp, this);
 }
Exemple #9
0
        protected void OnTabSelectionChanged(object sender, EventArgs e)
        {
            // Update buttons to reflect change
            UpdateControlButtons();

            if (_tabControl.SelectedIndex != -1)
            {
                // Get the selected wizard page
                WizardPage wp = _wizardPages[_tabControl.SelectedIndex];

                // Should we be presented in full page?
                if (wp.FullPage)
                    EnterFullPage();
                else
                {
                    // Controller profile is not allowed to be outside of FullMode
                    if (_profile != Profiles.Controller)
                        LeaveFullPage();
                }
            }
            else
            {
                // Controller profile is not allowed to be outside of FullMode
                if (_profile != Profiles.Controller)
                    LeaveFullPage();
            }

            // Update manual drawn text
            _panelTop.Invalidate();

            // Generate raw selection changed event
            OnSelectionChanged(EventArgs.Empty);

            // Generate page leave event if currently on a valid page
            if (_selectedPage != null)
            {
                OnWizardPageLeave(_selectedPage);
                _selectedPage = null;
            }

            // Remember which is the newly seleced page
            if (_tabControl.SelectedIndex != -1)
                _selectedPage = _wizardPages[_tabControl.SelectedIndex] as WizardPage;

            // Generate page enter event is now on a valid page
            if (_selectedPage != null)
                OnWizardPageEnter(_selectedPage);
        }
Exemple #10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.wizardPage1           = new Crownwood.Magic.Controls.WizardPage();
     this.browseButton          = new System.Windows.Forms.Button();
     this.scanDirectoryTextBox  = new System.Windows.Forms.TextBox();
     this.scanDirectoryLabel    = new System.Windows.Forms.Label();
     this.wizardPage2           = new Crownwood.Magic.Controls.WizardPage();
     this.componentListBox      = new System.Windows.Forms.ListBox();
     this.componentPropertyGrid = new System.Windows.Forms.PropertyGrid();
     this.wizardPage3           = new Crownwood.Magic.Controls.WizardPage();
     this.rootFeatureTreeView   = new System.Windows.Forms.TreeView();
     this.rootFeatureLabel      = new System.Windows.Forms.Label();
     this.rootDirectoryComboBox = new System.Windows.Forms.ComboBox();
     this.rootDirectoryLabel    = new System.Windows.Forms.Label();
     this.wizardPage4           = new Crownwood.Magic.Controls.WizardPage();
     this.summaryLabel          = new System.Windows.Forms.Label();
     this.wizardPage1.SuspendLayout();
     this.wizardPage2.SuspendLayout();
     this.wizardPage3.SuspendLayout();
     this.wizardPage4.SuspendLayout();
     //
     // wizardControl
     //
     this.wizardControl.AssignDefaultButton = true;
     this.wizardControl.Name          = "wizardControl";
     this.wizardControl.SelectedIndex = 2;
     this.wizardControl.Size          = new System.Drawing.Size(592, 416);
     this.wizardControl.Title         = "New Components Wizard";
     this.wizardControl.WizardPages.AddRange(new Crownwood.Magic.Controls.WizardPage[] {
         this.wizardPage1,
         this.wizardPage2,
         this.wizardPage3,
         this.wizardPage4
     });
     this.wizardControl.Load        += new System.EventHandler(this.wizardControl_Load);
     this.wizardControl.NextClick   += new System.ComponentModel.CancelEventHandler(this.wizardControl_NextClick);
     this.wizardControl.FinishClick += new System.EventHandler(this.wizardControl_FinishClick);
     this.wizardControl.BackClick   += new System.ComponentModel.CancelEventHandler(this.wizardControl_BackClick);
     //
     // wizardPage1
     //
     this.wizardPage1.CaptionTitle = "Select Scan Directory";
     this.wizardPage1.Controls.Add(this.browseButton);
     this.wizardPage1.Controls.Add(this.scanDirectoryTextBox);
     this.wizardPage1.Controls.Add(this.scanDirectoryLabel);
     this.wizardPage1.FullPage = false;
     this.wizardPage1.Location = new System.Drawing.Point(0, 0);
     this.wizardPage1.Name     = "wizardPage1";
     this.wizardPage1.Selected = false;
     this.wizardPage1.Size     = new System.Drawing.Size(592, 287);
     this.wizardPage1.SubTitle = "Select a directory on the local machine to scan for new Windows Installer compone" +
                                 "nts.";
     this.wizardPage1.TabIndex = 0;
     //
     // browseButton
     //
     this.browseButton.Location = new System.Drawing.Point(472, 136);
     this.browseButton.Name     = "browseButton";
     this.browseButton.TabIndex = 2;
     this.browseButton.Text     = "Browse...";
     this.browseButton.Click   += new System.EventHandler(this.browseButton_Click);
     //
     // scanDirectoryTextBox
     //
     this.scanDirectoryTextBox.Location     = new System.Drawing.Point(88, 136);
     this.scanDirectoryTextBox.Name         = "scanDirectoryTextBox";
     this.scanDirectoryTextBox.Size         = new System.Drawing.Size(368, 21);
     this.scanDirectoryTextBox.TabIndex     = 1;
     this.scanDirectoryTextBox.Text         = "";
     this.scanDirectoryTextBox.TextChanged += new System.EventHandler(this.scanDirectoryTextBox_TextChanged);
     //
     // scanDirectoryLabel
     //
     this.scanDirectoryLabel.Location = new System.Drawing.Point(88, 104);
     this.scanDirectoryLabel.Name     = "scanDirectoryLabel";
     this.scanDirectoryLabel.TabIndex = 0;
     this.scanDirectoryLabel.Text     = "Scan Directory:";
     //
     // wizardPage2
     //
     this.wizardPage2.CaptionTitle = "Review Components";
     this.wizardPage2.Controls.Add(this.componentListBox);
     this.wizardPage2.Controls.Add(this.componentPropertyGrid);
     this.wizardPage2.FullPage = false;
     this.wizardPage2.Location = new System.Drawing.Point(0, 0);
     this.wizardPage2.Name     = "wizardPage2";
     this.wizardPage2.Selected = false;
     this.wizardPage2.Size     = new System.Drawing.Size(592, 287);
     this.wizardPage2.SubTitle = "Review and modify automatically created Windows Installer components.";
     this.wizardPage2.TabIndex = 1;
     //
     // componentListBox
     //
     this.componentListBox.Location              = new System.Drawing.Point(24, 24);
     this.componentListBox.Name                  = "componentListBox";
     this.componentListBox.Size                  = new System.Drawing.Size(248, 238);
     this.componentListBox.TabIndex              = 5;
     this.componentListBox.SelectedIndexChanged += new System.EventHandler(this.componentListBox_SelectedIndexChanged);
     //
     // componentPropertyGrid
     //
     this.componentPropertyGrid.CommandsVisibleIfAvailable = true;
     this.componentPropertyGrid.HelpVisible    = false;
     this.componentPropertyGrid.LargeButtons   = false;
     this.componentPropertyGrid.LineColor      = System.Drawing.SystemColors.ScrollBar;
     this.componentPropertyGrid.Location       = new System.Drawing.Point(280, 24);
     this.componentPropertyGrid.Name           = "componentPropertyGrid";
     this.componentPropertyGrid.Size           = new System.Drawing.Size(288, 240);
     this.componentPropertyGrid.TabIndex       = 4;
     this.componentPropertyGrid.Text           = "component property grid";
     this.componentPropertyGrid.ToolbarVisible = false;
     this.componentPropertyGrid.ViewBackColor  = System.Drawing.SystemColors.Window;
     this.componentPropertyGrid.ViewForeColor  = System.Drawing.SystemColors.WindowText;
     //
     // wizardPage3
     //
     this.wizardPage3.CaptionTitle = "Select Feature";
     this.wizardPage3.Controls.Add(this.rootFeatureTreeView);
     this.wizardPage3.Controls.Add(this.rootFeatureLabel);
     this.wizardPage3.Controls.Add(this.rootDirectoryComboBox);
     this.wizardPage3.Controls.Add(this.rootDirectoryLabel);
     this.wizardPage3.FullPage = false;
     this.wizardPage3.Location = new System.Drawing.Point(0, 0);
     this.wizardPage3.Name     = "wizardPage3";
     this.wizardPage3.Size     = new System.Drawing.Size(592, 287);
     this.wizardPage3.SubTitle = "Select the feature and root directory to associate with the new components.";
     this.wizardPage3.TabIndex = 2;
     //
     // rootFeatureTreeView
     //
     this.rootFeatureTreeView.ImageIndex         = -1;
     this.rootFeatureTreeView.Location           = new System.Drawing.Point(168, 91);
     this.rootFeatureTreeView.Name               = "rootFeatureTreeView";
     this.rootFeatureTreeView.SelectedImageIndex = -1;
     this.rootFeatureTreeView.ShowRootLines      = false;
     this.rootFeatureTreeView.Size               = new System.Drawing.Size(320, 136);
     this.rootFeatureTreeView.TabIndex           = 7;
     //
     // rootFeatureLabel
     //
     this.rootFeatureLabel.Location  = new System.Drawing.Point(56, 99);
     this.rootFeatureLabel.Name      = "rootFeatureLabel";
     this.rootFeatureLabel.Size      = new System.Drawing.Size(104, 24);
     this.rootFeatureLabel.TabIndex  = 6;
     this.rootFeatureLabel.Text      = "Associated Feature:";
     this.rootFeatureLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // rootDirectoryComboBox
     //
     this.rootDirectoryComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.rootDirectoryComboBox.Location      = new System.Drawing.Point(168, 59);
     this.rootDirectoryComboBox.Name          = "rootDirectoryComboBox";
     this.rootDirectoryComboBox.Size          = new System.Drawing.Size(320, 21);
     this.rootDirectoryComboBox.TabIndex      = 5;
     //
     // rootDirectoryLabel
     //
     this.rootDirectoryLabel.Location  = new System.Drawing.Point(56, 59);
     this.rootDirectoryLabel.Name      = "rootDirectoryLabel";
     this.rootDirectoryLabel.Size      = new System.Drawing.Size(104, 24);
     this.rootDirectoryLabel.TabIndex  = 4;
     this.rootDirectoryLabel.Text      = "Root Directory:";
     this.rootDirectoryLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // wizardPage4
     //
     this.wizardPage4.CaptionTitle = "Commit Components";
     this.wizardPage4.Controls.Add(this.summaryLabel);
     this.wizardPage4.FullPage = false;
     this.wizardPage4.Location = new System.Drawing.Point(0, 0);
     this.wizardPage4.Name     = "wizardPage4";
     this.wizardPage4.Selected = false;
     this.wizardPage4.Size     = new System.Drawing.Size(592, 287);
     this.wizardPage4.SubTitle = "Commit the new components to the database.";
     this.wizardPage4.TabIndex = 3;
     //
     // summaryLabel
     //
     this.summaryLabel.Location  = new System.Drawing.Point(72, 59);
     this.summaryLabel.Name      = "summaryLabel";
     this.summaryLabel.Size      = new System.Drawing.Size(448, 168);
     this.summaryLabel.TabIndex  = 13;
     this.summaryLabel.Text      = "summary text";
     this.summaryLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // NewComponentsForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(592, 416);
     this.Name = "NewComponentsForm";
     this.Text = "New Components Wizard";
     this.wizardPage1.ResumeLayout(false);
     this.wizardPage2.ResumeLayout(false);
     this.wizardPage3.ResumeLayout(false);
     this.wizardPage4.ResumeLayout(false);
 }
Exemple #11
0
 public void Remove(WizardPage value)
 {
     // Use base class to process actual collection operation
     base.List.Remove(value as object);
 }
Exemple #12
0
 public void Insert(int index, WizardPage value)
 {
     // Use base class to process actual collection operation
     base.List.Insert(index, value as object);
 }
Exemple #13
0
 public int IndexOf(WizardPage value)
 {
     // Find the 0 based index of the requested entry
     return base.List.IndexOf(value);
 }
Exemple #14
0
 public bool Contains(WizardPage value)
 {
     // Use base class to process actual collection operation
     return base.List.Contains(value as object);
 }
Exemple #15
0
 public void AddRange(WizardPage[] values)
 {
     // Use existing method to add each array entry
     foreach(WizardPage page in values)
         Add(page);
 }