public void resetToMain() { MenuTrail.Clear(); MenuTrail.Push(rootMenu); currentPage = getIMenuPageFromEnum(rootMenu); currentPage.enteringMenu(); }
void setCurrentPage(IMenuPage page) { if (page == currentPage) { return; //No change so do nothing } currentPage.leavingMenu(); currentPage = page; page.enteringMenu(); }
void setCurrentPage(IMenuPage page) { if (page == currentPage) return; //No change so do nothing currentPage.leavingMenu(); currentPage = page; page.enteringMenu(); }