private void button1_Click(object sender, EventArgs e) { this.Hide(); SAD2 sad = new SAD2(); sad.ShowDialog(); this.Show(); }
private void login_button_Click(object sender, EventArgs e) { if (User.loginUser(Username_textbox.Text, Password_textbox.Text)) { this.Hide(); SAD2 sad = new SAD2(Username_textbox.Text); sad.Show(); } else { Notification.Show(State.WrongCredentials); } }