Esempio n. 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 " + workPanel.Controls.Count.ToString();

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

            currentControl.Show();

            // description
            descriptionLabel.Text = page.PageDescription;

            // notify the page
            page.Display();

            // update conrol buttons
            UpdateControlButtons();
        }
Esempio n. 2
0
        // Set current page
        private void SetCurrentPage(int n)
        {
            // get current page
            currentControl = tabControl.Controls[n].Controls[0];
            VsIDialogWizard page = (VsIDialogWizard)currentControl;

            // notify the page
            page.Display();

            // update conrol buttons
            UpdateControlButtons();
        }