Beispiel #1
0
        public void ShowPage(Page pageToShow)
        {
            if (ActivePage != pageToShow)
            {

                if (ActivePage != null)
                {

                    ActivePage.ClosePage();
                    LastActivePage = ActivePage;

                }

                pageToShow.ShowPage();
                ActivePage = pageToShow;

            }
        }
Beispiel #2
0
        public void ClosePage(Page pageToClose)
        {
            if (MainPage != null)
            {

                MainPage.ShowPage();
                ActivePage = MainPage;

            }
            else
            {

                if (LastActivePage != null)
                {

                    LastActivePage.ShowPage();
                    ActivePage = LastActivePage;
                }

            }

            pageToClose.ClosePage();
            LastActivePage = pageToClose;
        }
Beispiel #3
0
 // Page Methods
 public void SetMainPage(Page MainPage)
 {
     this.MainPage = MainPage;
 }