예제 #1
0
 public void resetToMain()
 {
     MenuTrail.Clear();
     MenuTrail.Push(rootMenu);
     currentPage = getIMenuPageFromEnum(rootMenu);
     currentPage.enteringMenu();
 }
예제 #2
0
 void setCurrentPage(IMenuPage page)
 {
     if (page == currentPage)
     {
         return;                      //No change so do nothing
     }
     currentPage.leavingMenu();
     currentPage = page;
     page.enteringMenu();
 }
예제 #3
0
 void setCurrentPage(IMenuPage page)
 {
     if (page == currentPage) return; //No change so do nothing
     currentPage.leavingMenu();
     currentPage = page;
     page.enteringMenu();
 }
예제 #4
0
 public void resetToMain()
 {
     MenuTrail.Clear();
     MenuTrail.Push(rootMenu);
     currentPage = getIMenuPageFromEnum(rootMenu);
     currentPage.enteringMenu();
 }