public static ErrorCheck GetInstance() { if (errorCheck == null) { errorCheck = new ErrorCheck(); } return(errorCheck); }
public SignUpControl(MainWindow mainWindow, LoginControl loginControl, DAO dao) { InitializeComponent(); this.mainWindow = mainWindow; this.loginControl = loginControl; this.dao = dao; errorCheck = ErrorCheck.GetInstance(); }
public LoginControl(MainWindow mainWindow) { InitializeComponent(); this.mainWindow = mainWindow; dao = new DAO(); this.errorCheck = ErrorCheck.GetInstance(); mainWindow.Closed += MainWindow_Closed; }