Пример #1
0
        //--------------------------------------------------------------------------------
        /// <summary>
        /// This is a common initialization function called by all of the constructors.
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="pageType"></param>
        private void Init(WizardFormBase parent, WizardPageType pageType)
        {
            InitializeComponent();

            //this.BorderStyle = BorderStyle.FixedSingle;

            m_parentWizardForm = parent;
            this.Visible       = false;
            this.Dock          = DockStyle.Fill;
            m_pageType         = pageType;

            // if this is the start page, disable the Back and Start buttons
            if (WizardPageType == WizardPageType.Start)
            {
                // added the following line to support the "<< Start" button - jms 2/19/2009
                ButtonStateStart &= ~WizardButtonState.Enabled;

                ButtonStateBack &= ~WizardButtonState.Enabled;
            }

            m_parentWizardForm.PageCreated(this);
            m_parentWizardForm.WizardPageChangeEvent += new WizardPageChangeHandler(parentForm_WizardPageChange);
        }
Пример #2
0
 //--------------------------------------------------------------------------------
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="parent">The WizardFormBase that conatins this chain</param>
 public WizardPageChain(WizardFormBase parent)
 {
     m_parent = parent;
     this.m_pageChain.Clear();
 }
Пример #3
0
 //--------------------------------------------------------------------------------
 /// <summary>
 /// Creates a wizard page of the specified type. You can optionally call the
 /// other constructor if you're adding anintermediate page.
 /// </summary>
 /// <param name="parent">The parent wizard form</param>
 /// <param name="pageType">The type of page being created (see WizardPageType enum)</param>
 public WizardPage(WizardFormBase parent, WizardPageType pageType)
 {
     Init(parent, pageType);
 }
Пример #4
0
 //--------------------------------------------------------------------------------
 /// <summary>
 /// Default constructor - creates an Intermediate wizard page. To create a
 /// start or stop page, use the overloaded constructor
 /// </summary>
 public WizardPage(WizardFormBase parent)
 {
     Init(parent, WizardPageType.Intermediate);
 }