Example #1
0
 private void LoadWizard()
 {
     _currentPage = _pages[0];
     flowPanelWizard.Controls.Add(_currentPage);
     _page = 0;
     _currentPage.PageShown();
 }
Example #2
0
        /// <summary>
        /// Selects the previous page in the wizard
        /// </summary>
        public void SelectPreviousPage()
        {
            if (_page == 0)
            {
                return;
            }

            if (!_currentPage.PreviousClicked())
            {
                return;
            }

            flowPanelWizard.Controls.Clear();

            _page = PreviousPage(_page);

            _currentPage = _pages[_page];

            flowPanelWizard.Controls.Add(_currentPage);
            _currentPage.PageShown();

            SetButtons();
        }
Example #3
0
        /// <summary>
        /// Forces the wizard to select the next page
        /// </summary>
        public void SelectNextPage()
        {
            if (_page >= _maxPages)
            {
                return;
            }

            if (!_currentPage.NextClicked())
            {
                return;
            }

            flowPanelWizard.Controls.Clear();

            _page = NextPage(_page);

            _currentPage = _pages[_page];

            flowPanelWizard.Controls.Add(_currentPage);
            _currentPage.PageShown();

            SetButtons();
        }