예제 #1
0
 public Menu(Print print)
 {
     this.print       = print;
     this.errorCheck  = ErrorCheck.GetInstance();
     memberManagement = new MemberManagement(this);
     bookManagement   = new BookManagement(this);
     MainMenu();
 }
예제 #2
0
 public static ErrorCheck GetInstance() //싱글톤구조
 {
     if (errorCheck == null)
     {
         errorCheck = new ErrorCheck();
     }
     return(errorCheck);
 }
예제 #3
0
 public Login()
 {
     print      = new Print();
     errorCheck = ErrorCheck.GetInstance();
 }
예제 #4
0
 public MemberManagement(Menu menu)
 {
     print      = Print.GetInstance();
     errorCheck = ErrorCheck.GetInstance();
     this.menu  = menu;
 }
예제 #5
0
 public Print()
 {
     errorCheck = ErrorCheck.GetInstance(); //싱글톤구조
 }