Exemplo n.º 1
0
 private void BtnLogar_Click(object sender, EventArgs e)
 {
     if (txtUsuario.Text.Equals("admin") && txtSenha.Text.Equals("admin"))
     {
         this.Hide();
         frmCadastro cadastra = new frmCadastro();
         cadastra.ShowDialog();
         this.Show();
     }
     else
     {
         MessageBox.Show("Usuario/Senha incorretos");
     }
 }
Exemplo n.º 2
0
 private void btnCadastrar_Click(object sender, EventArgs e)
 {
     cadastra.ShowDialog();
 }