예제 #1
0
 private void btnConectar_Click(object sender, EventArgs e)
 {
     if ((txtNome.Text == "admin") && (txtSenha.Text == "123"))
     {
         Registros registro = new Registros();
         registro.ShowDialog();
     }
     else
     {
         MessageBox.Show("Tente novamente", "Usuario ou senha está incorreto!");
     }
 }