Esempio n. 1
0
 public MemberManagement(AdminMenu adminMenu, DAO dao)
 {
     print          = Print.GetInstance();
     errorCheck     = ErrorCheck.GetInstance();
     this.adminMenu = adminMenu;
     this.dao       = dao;
 }
Esempio n. 2
0
 public Login()
 {
     print      = Print.GetInstance();
     errorCheck = ErrorCheck.GetInstance();
     dao        = new DAO();
     LoginToMenu();
 }
Esempio n. 3
0
 public BookManagement(AdminMenu adminMenu, DAO dao)
 {
     print          = Print.GetInstance();
     errorCheck     = ErrorCheck.GetInstance();
     this.adminMenu = adminMenu;
     bookList       = new List <BookVO>();
     this.dao       = dao;
 }
Esempio n. 4
0
 public static ErrorCheck GetInstance()
 {
     if (errorCheck == null)
     {
         errorCheck = new ErrorCheck();
     }
     return(errorCheck);
 }
Esempio n. 5
0
 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();
 }
Esempio n. 6
0
 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();
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
 public Print()
 {
     errorCheck = ErrorCheck.GetInstance();
 }