Exemplo 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;
 }
Exemplo 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);
        }