コード例 #1
0
 public void NavigateNextPage(WizardBase wizard)
 {
     if (wizard.CurrentPage.IsLastPage) {
         throw new InvalidOperationException();
     }
     var currentPageIndex = wizard.Pages.IndexOf(wizard.CurrentPage);
     wizard.CurrentPage = wizard.Pages[currentPageIndex + 1];
 }
コード例 #2
0
        public void NavigatePrevPage(WizardBase wizard)
        {
            if (wizard.CurrentPage.IsFirstPage)
            {
                throw new InvalidOperationException();
            }
            var currentPageIndex = wizard.Pages.IndexOf(wizard.CurrentPage);

            wizard.CurrentPage = wizard.Pages[currentPageIndex - 1];
        }