Example #1
0
 void setCurrentPage(IMenuPage page)
 {
     if (page == currentPage)
     {
         return;                      //No change so do nothing
     }
     currentPage.leavingMenu();
     currentPage = page;
     page.enteringMenu();
 }