Exemple #1
0
 private void terminarSessãoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Deseja realmente terminar a sessão?", "Confirmação", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Login loginform = new Login();
         this.Close();
         loginform.Show();
     }
 }
Exemple #2
0
 private void label2_Click(object sender, EventArgs e)
 {
     Login loginform = new Login();
     this.Close();
     loginform.Close();
     Application.Exit();
 }
Exemple #3
0
 private void sairToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Deseja realmente sair do programa?", "Confirmação", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Login loginform = new Login();
         this.Close();
         loginform.Close();
         Application.Exit();
     }
 }
Exemple #4
0
 private void label1_Click(object sender, EventArgs e)
 {
     Login loginform = new Login();
     this.Close();
     loginform.Show();
 }