Ejemplo n.º 1
0
        /// <summary>
        /// 시간표 메뉴를 담당하는 메서드
        /// </summary>
        public void TimeTableMenu()
        {
            bool TimeTableExitFlag = true;

            while (TimeTableExitFlag)
            {
                drawUI.ScheduleMenu();
                mode = drawUI.GetConsoleIdNumber(1);
                if (mode.Equals("back"))
                {
                    return;
                }
                switch (mode)
                {
                case TimeTableConstants.TIMETABLE_CONSOLE:      //콘솔로 시간표 출력
                    timeTable.MakeTimeTable(dataControl, id, TimeTableConstants.CONSOLE);
                    drawUI.PressAnyKey();
                    break;

                case TimeTableConstants.TIMETABLE_SAVE_EXCELFILE:       //엑셀 파일로 저장하기
                    timeTable.SaveTimeTable(readAndWriteExcelFile, dataControl, id, TimeTableConstants.EXCEL);
                    break;

                case TimeTableConstants.TIMETABLE_BACK:
                    TimeTableExitFlag = false;
                    break;

                default:
                    break;
                }
            }
        }