public bool login() { user=Ada.getByUsernameAndPassword(textBox1.Text, textBox2.Text); if (user.AccountID == -1) return false; return true; }
public bool login() { user = Ada.getByUsernameAndPassword(textBox1.Text, textBox2.Text); if (user.AccountID == -1) { return(false); } return(true); }