Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Hide();
     Login formLogin = new Login();
     formLogin.ShowDialog();
     this.Close();
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (GlobalVariabel.logedIn == 0)
     {
         this.Hide();
         Login formLogin = new Login();
         formLogin.ShowDialog();
         this.Close();
     }
     else
     {
         Logout formLogout = new Logout();
         formLogout.ShowDialog();
     }
 }