private void button3_Click(object sender, EventArgs e)
        {
            software form8 = new software();

            form8.Show();
            this.Hide();
        }
Пример #2
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Tem a certeza que pretende fazer Logout?", "Aviso de Logout", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) //se carregar no botão "yes" volta para o form1
     {
         Form1 form1 = new Form1();
         form1.Show();
         this.Hide();
     }
     else //caso contrario, se carregar no botão "no", fica no form atual
     {
         software form10 = new software();
         form10.Show();
         this.Hide();
     }
 }