Exemplo n.º 1
0
        public void EditWhichOne()
        {
            bool exitFlag = true;

            while (exitFlag)
            {
                printAboutControlMembers.PrintEditWhich();
                mode = Console.ReadLine();

                switch (mode)
                {
                case LibraryConstants.EDIT_ADDRESS:
                    PrintAddress();
                    if (address.Equals("0"))
                    {
                        return;
                    }
                    else if (address.Equals("1"))
                    {
                        return;
                    }
                    else
                    {
                        memberDAO.EditMemberAddress(id, address);
                        logDAO.AddLog(DateTime.Now, id + " 주소 수정", "정보 수정");
                        //drawControlMember.EditResult("S U C C E S S");
                    }
                    return;

                case LibraryConstants.EDIT_PHONE:
                    PrintPhoneNumber();
                    if (phoneNumber.Equals("0"))
                    {
                        return;
                    }
                    else if (phoneNumber.Equals("1"))
                    {
                        return;
                    }
                    else
                    {
                        memberDAO.EditMemberPhone(id, phoneNumber);
                        logDAO.AddLog(DateTime.Now, id + " 전화번호 수정", "정보 수정");
                    }
                    //drawControlMember.EditResult("S U C C E S S");
                    return;

                case LibraryConstants.EDIT_EXIT:
                    exitFlag = false;
                    break;

                default:
                    break;
                }
            }
        }