Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            SAD2 sad = new SAD2();

            sad.ShowDialog();
            this.Show();
        }
Beispiel #2
0
 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);
     }
 }