/// <summary> /// 삭제하는 창을 그리고 삭제하는 메소드 /// </summary> /// <param name="list"></param> public void PrintDelete() { DeleteSub(); if (id.Equals("0")) { return; } memberDAO.DeleteMember(id); logDAO.AddLog(DateTime.Now, id, "회원 삭제"); printAboutControlMembers.DeleteResult("S U C C E S S"); }
public void CheckLog() { bool flag = true; while (flag) { printAboutBooks.ManagementLog(); mode = Console.ReadLine(); switch (mode) { case LibraryConstants.LOG_CHECK: logDAO.CheckLog(); break; case LibraryConstants.LOG_CLEAR: logDAO.DeleteAllLog(); printAboutControlMembers.DeleteResult("S U C C E S S !"); break; case LibraryConstants.LOG_MAKENOTE: logDAO.SaveInTextFile(); break; case LibraryConstants.LOG_DELETENOTE: logDAO.DeleteTextFile(); break; case LibraryConstants.LOG_EXIT: flag = false; break; default: break; } } }