예제 #1
0
        /// <summary>
        /// 메인 메뉴 부분의 로직을 담당하는 메서드
        /// </summary>
        public void MainMenu()
        {
            bool mainMenuExitFlag = true;

            while (mainMenuExitFlag)
            {
                drawUI.MainMenu();
                mode = drawUI.GetConsoleIdNumber(1);
                if (mode.Equals("back"))
                {
                    Login();
                    return;
                }
                switch (mode)
                {
                case TimeTableConstants.SUBJECTS_INTEREST:          //관심과목담기 메뉴로
                    PutSubjectInterestMenu();
                    break;

                case TimeTableConstants.REGISTER_CLASSES:           //수강신청 메뉴로
                    RegisterClassMenu();
                    break;

                case TimeTableConstants.TIMETABLE_CHECK:            //시간표 메뉴로
                    TimeTableMenu();
                    break;

                case TimeTableConstants.LOGOUT:
                    mainMenuExitFlag = false;
                    Login();
                    break;

                default:
                    break;
                }
            }
        }