private void button1_Click(object sender, EventArgs e) { GestorAdminCentro obj3 = new GestorAdminCentro(); /* Centro centro = new Centro(USUARIO.Text); * centro.Visible = true; * this.Visible = false;*/ // int temp2 = 0; if (USUARIO.Text != String.Empty && CONTRASENA.Text != String.Empty) { bool si3 = obj3.ValidarAdminCentro(USUARIO.Text, CONTRASENA.Text.ToString()); if (si3 == true) { Centro centro = new Centro(USUARIO.Text); centro.Visible = true; this.Visible = false; } else { USUARIO.Text = ""; CONTRASENA.Text = ""; MessageBox.Show("Lo sentimos, sus credenciales no se encuentran registradas " + " Verifiquelas e intentelo de nuevo"); } } else { MessageBox.Show("Por favor ingrese todos los campos"); } }
private void button1_Click(object sender, EventArgs e) { Centro cmedico = new Centro(); cmedico.Visible = true; Visible = false; }
private void buttonVOLVER_Click(object sender, EventArgs e) { Centro centro = new Centro(); centro.Visible = true; Visible = false; }
private void buttonV_Click(object sender, EventArgs e) { textCedulaE.Clear(); Centro centro = new Centro(); centro.Visible = true; Visible = false; }