Esempio n. 1
0
 private Page GetNextPage(string menuItem)
 {
     Page nextPage = null;
     switch (menuItem) {
     case "Sessions":
         nextPage = new SessionsPage ();
         break;
     case "Speakers":
         nextPage = new SpeakersPage ();
         break;
     case "Rooms":
         nextPage = new RoomsPage ();
         break;
     case "Topics":
         nextPage = new TopicsPage ();
         break;
     case "Sponsors":
         nextPage = new SponsorsPage ();
         break;
     case "About":
         nextPage = new AboutPage ();
         break;
     }
     return nextPage;
 }
Esempio n. 2
0
        private Page GetNextPage(string menuItem)
        {
            Page nextPage = null;

            switch (menuItem)
            {
            case "Sessions":
                nextPage = new SessionsPage();
                break;

            case "Speakers":
                nextPage = new SpeakersPage();
                break;

            case "Rooms":
                nextPage = new RoomsPage();
                break;

            case "Topics":
                nextPage = new TopicsPage();
                break;

            case "Sponsors":
                nextPage = new SponsorsPage();
                break;

            case "About":
                nextPage = new AboutPage();
                break;
            }
            return(nextPage);
        }