public void Menu() //this method is basically what makes the whole program run. { while (true) { bool exit = false; int menuChoice = MainMenuChoice(); switch (menuChoice) { //create meeting case 1: CreateMeeting(); break; //view team case 2: ViewTeams viewTeams = new ViewTeams(); viewTeams.PrintTeams(); break; //Exit case 3: Console.WriteLine("\nGoodbye!\n"); exit = true; break; default: continue; } if (exit == true) { break; } } }
//this method is basically what makes the whole program run. public void Menu() { while (true) { bool exit = false; int menuChoice = MainMenuChoice(); switch (menuChoice) { //create meeting case 1: CreateMeeting(); break; //view team case 2: ViewTeams viewTeams = new ViewTeams(); viewTeams.PrintTeams(); break; //Exit case 3: Console.WriteLine("\nGoodbye!\n"); exit = true; break; default: continue; } if (exit == true) { break; } } }