示例#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();
     }
 }