Пример #1
0
 public static ErrorCheck GetInstance()
 {
     if (errorCheck == null)
     {
         errorCheck = new ErrorCheck();
     }
     return(errorCheck);
 }
Пример #2
0
 public SignUpControl(MainWindow mainWindow, LoginControl loginControl, DAO dao)
 {
     InitializeComponent();
     this.mainWindow   = mainWindow;
     this.loginControl = loginControl;
     this.dao          = dao;
     errorCheck        = ErrorCheck.GetInstance();
 }
Пример #3
0
 public LoginControl(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow    = mainWindow;
     dao                = new DAO();
     this.errorCheck    = ErrorCheck.GetInstance();
     mainWindow.Closed += MainWindow_Closed;
 }