Exemple #1
0
        private void backButton_Click(object sender, EventArgs e)
        {
            //Return back to main screen
            this.Hide();
            var form2 = new MainScreen();

            form2.Closed += (s, args) => this.Close();
            form2.Show();
        }
Exemple #2
0
 private void connect_Button_Click(object sender, EventArgs e)
 {
     if (DBConnection.ConnectToDatabase(loginTextBox.Text, passwordTextBox.Text))
     {
         this.Hide();
         var form2 = new MainScreen();
         form2.Closed += (s, args) => this.Close();
         form2.Show();
     }
 }