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