public AccountDataBase() { if (dataBaseInstance != null) { return; } dataBaseInstance = this; // currentLogin = LogIn.logInInstance; }
public LogIn() { if (logInInstance != null) { return; } logInInstance = this; newAccountdatabase = AccountDataBase.dataBaseInstance; InitializeComponent(); }
public CreateAccount() { if (createAccountInstance != null) { return; } createAccountInstance = this; newDataBase = new AccountDataBase(); currentLogin = new LogIn(); InitializeComponent(); }