예제 #1
0
        public override void GoToPage(AdvancedWizardPage page)
        {
            int index = _wizard.IndexOfCurrentPage();
            _wizard.SelectWizardPage(page);
            _wizard.StoreIndexOfCurrentPage(index);
            SetButtonStates();

            page.FirePageShowEvent();

            if (_wizard.PageChangedEventAssigned())
                _wizard.FirePageChanged(_wizard.IndexOfCurrentPage());
        }
 private static void DisplayPage(AdvancedWizardPage page)
 {
     page.Dock = DockStyle.Fill;
     page.BringToFront();
 }
 /// <summary>
 ///   Removes the first occurrence of a specific WizardPage from the Collection.
 /// </summary>
 /// <param name="page">
 ///   The WizardPage to remove.
 /// </param>
 public void Remove(AdvancedWizardPage page)
 {
     _items.Remove(page);
 }
 /// <summary>
 ///   Inserts the WizardPage into the collection at the specified position.
 /// </summary>
 /// <param name="index">
 ///   Position at which to insert the page.
 /// </param>
 /// <param name="page">
 ///   WizardPage to insert.
 /// </param>
 public void Insert(Int32 index, AdvancedWizardPage page)
 {
     _items.Insert(index, page);
 }
 /// <summary>
 ///   Returns the index for the WizardPage within the collection.
 /// </summary>
 /// <param name="page">
 ///   WizardPage to locate within the collection.
 /// </param>
 /// <returns>
 ///   Index of the WizardPage.
 /// </returns>
 public Int32 IndexOf(AdvancedWizardPage page)
 {
     return _items.IndexOf(page);
 }
 /// <summary>
 ///   Attempts to locate the WizardPage within the collection.
 /// </summary>
 /// <param name="page">
 ///   WizardPage to locate.
 /// </param>
 /// <returns>
 ///   True if the WizardPage exists in the collection.
 /// </returns>
 public Boolean Contains(AdvancedWizardPage page)
 {
     return _items.Contains(page);
 }
예제 #7
0
 public Boolean Contains(AdvancedWizardPage page) => _items.Contains(page);
 private void UpdateWizard(AdvancedWizardPage page)
 {
     _wizard.SelectWizardPage(page);
     _wizard.SetButtonStates();
 }
예제 #9
0
 internal void SelectWizardPage(AdvancedWizardPage page)
 {
     if (_pages.Contains(page))
     {
         _selectedPage = _pages.IndexOf(page);
         page.BringToFront();
         SetButtonStates();
     }
 }
예제 #10
0
 public override void GoToPage(AdvancedWizardPage page)
 {
     // stub - not required at design time
 }
 private void GetReferenceToWizardPage()
 {
     _page = (Control as AdvancedWizardPage);
 }
예제 #12
0
 public abstract void GoToPage(AdvancedWizardPage page);
예제 #13
0
 public void Insert(Int32 index, AdvancedWizardPage page) => _items.Insert(index, page);
예제 #14
0
 public Int32 IndexOf(AdvancedWizardPage page) => _items.IndexOf(page);
 private void AddPageToContainers(AdvancedWizardPage page)
 {
     _wizard.WizardPages.Add(page);
     _wizard.Controls.Add(page);
 }
예제 #16
0
 public void GoToPage(AdvancedWizardPage page)
 {
     _wizardStrategy.GoToPage(page);
 }
 private void SelectPageInProperyGrid(AdvancedWizardPage page)
 {
     _selectionService.SetSelectedComponents(new object[] {page}, SelectionTypes.MouseDown);
 }
        /// <summary>
        ///   Adds a page to the collection.
        /// </summary>
        /// <param name="page">
        ///   WizardPage to add to the collection.
        /// </param>
        /// <returns>
        ///   Index at which the WizardPage was added.
        /// </returns>
        public Int32 Add(AdvancedWizardPage page)
        {
            if (OnPageAdded != null)
                OnPageAdded(this, new WizardPageEventArgs(page));

            return _items.Add(page);
        }
 public WizardPageEventArgs(AdvancedWizardPage page)
 {
     _page = page;
 }
 public WizardPageChangedEventArgs(AdvancedWizardPage page, int pageIndex)
 {
     Page = page;
     _pageIndex = pageIndex;
 }