Пример #1
0
        // Set current page
        private void SetCurrentPage(int n)
        {
            OnPageChanging(n);

            // hide previous page
            if (currentControl != null)
            {
                currentControl.Hide();
            }

            //
            currentPage = n;

            // update dialog text
            //this.Text = title + " - Page " + ((int)(n + 1)).ToString() + " of " + panel主体.Controls.Count.ToString();

            // show new page
            currentControl = panel主体.Controls[currentPage];
            IWizardPage page = (IWizardPage)currentControl;

            currentControl.Show();

            // description
            lb介绍.Text = page.PageDescription;

            // notify the page
            page.Display();

            // update conrol buttons
            UpdateControlButtons();
        }
Пример #2
0
        // Set current page
        private void SetCurrentPage(int n)
        {
            // get current page
            currentControl = tabControl.Controls[n].Controls[0];
            IWizardPage page = (IWizardPage)currentControl;

            // notify the page
            page.Display();

            // update conrol buttons
            UpdateControlButtons();
        }
Пример #3
0
        // Set current page
        private void SetCurrentPage(int n)
        {
            OnPageChanging(n);

            // hide previous page
            if (currentControl != null)
            {
                currentControl.Hide();
            }

            //
            currentPage = n;

            // update dialog text
            this.Text = "设备配置精灵" + " - 页 " + ((int)(n + 1)).ToString() + " / " + workPanel.Controls.Count.ToString();

            // show new page
            currentControl = workPanel.Controls[currentPage];
            IWizardPage page = (IWizardPage)currentControl;


            currentControl.Show();

            // description
            descriptionLabel.Text = page.PageDescription;

            // notify the page
            page.Display();
            if (n > 0)
            {
                if (page.ControlWidth > 0)
                {
                    workPanel.Width  = page.ControlWidth;
                    workPanel.Height = page.ControlHeight;
                    this.Height      = controlPanel.Height + workPanel.Height + descPannel.Height;
                    this.Width       = workPanel.Width;
                }
            }

            // update conrol buttons
            UpdateControlButtons();
        }