Esempio n. 1
0
        /// <summary>
        /// 멤버 관리하는 메소드 (메인 역할)
        /// </summary>
        /// <param name="list">회원 정보 목록</param>
        public void MemberManagement()
        {
            bool flag = true;

            while (flag)
            {
                printAboutControlMembers.Menu();
                mode = Console.ReadLine();

                switch (mode)
                {
                case LibraryConstants.ADD_NEW_MEMBER:
                    addNewMember.PrintAndAdd();
                    break;

                case LibraryConstants.EDIT_MEMBER_INFO:
                    memberManagement.PrintEdit();
                    break;

                case LibraryConstants.DELETE_MEMBER:
                    memberManagement.PrintDelete();
                    break;

                case LibraryConstants.SEARCH_MEMBER:
                    memberManagement.PrintSearch();
                    break;

                case LibraryConstants.PRINT_MEMBER_INFO:
                    memberManagement.PrintAll();
                    break;

                case LibraryConstants.GO_BEFORE_PAGE:
                    flag = false;
                    break;

                default:
                    break;
                }
            }
        }