public MemberManagement(AdminMenu adminMenu, DAO dao) { print = Print.GetInstance(); errorCheck = ErrorCheck.GetInstance(); this.adminMenu = adminMenu; this.dao = dao; }
public Login() { print = Print.GetInstance(); errorCheck = ErrorCheck.GetInstance(); dao = new DAO(); LoginToMenu(); }
public BookManagement(AdminMenu adminMenu, DAO dao) { print = Print.GetInstance(); errorCheck = ErrorCheck.GetInstance(); this.adminMenu = adminMenu; bookList = new List <BookVO>(); this.dao = dao; }
public static ErrorCheck GetInstance() { if (errorCheck == null) { errorCheck = new ErrorCheck(); } return(errorCheck); }
public UserMenu(DAO dao, string logonID) { this.dao = dao; this.print = Print.GetInstance(); this.errorCheck = ErrorCheck.GetInstance(); this.logonID = logonID; bookManagement = new BookManagement(this, dao, logonID); MainMenu(); }
public AdminMenu(DAO dao) { this.dao = dao; this.memberManagement = new MemberManagement(this, dao); this.bookManagement = new BookManagement(this, dao); this.dbManagement = new DBManagement(this, dao); print = Print.GetInstance(); errorCheck = ErrorCheck.GetInstance(); MainMenu(); }
public BookManagement(UserMenu userMenu, DAO dao, string logonID) { print = Print.GetInstance(); errorCheck = ErrorCheck.GetInstance(); this.userMenu = userMenu; this.dao = dao; bookList = new List <BookVO>(); this.logonID = logonID; logOnMember = dao.Select(logonID); }
public Print() { errorCheck = ErrorCheck.GetInstance(); }