Ejemplo n.º 1
0
        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;
                }
            }
        }
Ejemplo n.º 2
0
        //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;
                    }
            }
        }