//Two constructors one is needed if we log out the other for basic log in //every button must call a function of the class that controlls it : required by Prof public Form1() { InitializeComponent(); db1 = new Database(); db1.init(); auth1 = new Auth(db1); }
public Form1(Database db1) { this.db1 = db1; InitializeComponent(); auth1 = new Auth(db1); }