Ejemplo n.º 1
0
        public WizardPageInfo(string pageName, string pageTitle, UserControl pageView = null, IWizardPageNotificationObject notificationObject = null)
        {
            _pageName  = pageName;
            _pageTitle = pageTitle;
            _pageView  = pageView;

            NotificationObject = notificationObject;
        }
Ejemplo n.º 2
0
        public void AddPage(IWizardPageInfo page, IWizardPageNotificationObject notificationObject = null)
        {
            if (page != null)
            {
                if (GetPageIndex(page.PageName) == -1)
                {
                    Pages.Add(page);

                    page.PageStatusChanged   += OnPageStatusChanged;
                    page.PagePropertyChanged += OnPagePropertyChanged;

                    if (notificationObject != null)
                    {
                        page.NotificationObject = notificationObject;
                    }

                    // If this is first page we insert, navigate to it
                    if (_currentIndex == -1)
                    {
                        GoToPage(0);
                    }
                }
            }
        }