Beispiel #1
0
        private void exitAfterSave()
        {
            AdminMain nextForm = new AdminMain();

            this.Hide();
            nextForm.ShowDialog();
            this.Close();
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (adminEmailTB.Text == AdminMail && AdminPasswordTB.Text == AdminPassword)
     {
         AdminMain nextForm = new AdminMain();
         this.Hide();
         nextForm.ShowDialog();
         this.Close();
     }
     else
     {
         errorMessage.Visible = true;
     }
 }