Exemplo n.º 1
0
        /// <summary>
        /// 관심과목 담기를 담당하는 메서드
        /// </summary>
        public void PutSubjectInterestMenu()
        {
            bool interestExitFlag = true;

            while (interestExitFlag)
            {
                drawUI.InterestSubject();

                mode = drawUI.GetConsoleIdNumber(1);
                if (mode.Equals("back"))
                {
                    return;
                }
                switch (mode)
                {
                case TimeTableConstants.INTEREST_SEARCH_ADD:            //관심과목담기
                    interestSubject.SearchInterest(id, dataControl, readAndWriteExcelFile);
                    break;

                case TimeTableConstants.INTEREST_DELETE:                //관심과목담기 취소
                    interestSubject.DeleteInterest(id, dataControl);
                    break;

                case TimeTableConstants.INTEREST_INQUIRY:               //관심과목 조회
                    interestSubject.InQuiry(id, dataControl);
                    break;

                case TimeTableConstants.INTEREST_BACK:
                    interestExitFlag = false;
                    break;

                default:
                    break;
                }
            }
        }