private void bunifuThinButton21_Click(object sender, EventArgs e) { Busqueda_Objeto nueva = new Busqueda_Objeto(); this.Hide(); nueva.ShowDialog(); this.Show(); }
private void btnaceptaris_Click(object sender, EventArgs e) { string email = txtmailis.Text; string pass = txtcontrais.Text; if (email == "" || pass == "") { MessageBox.Show("No puede haber campos vacios"); return; } bool r = validar(email, pass); bool r2 = validarAlumno(email, pass); if (r) { MessageBox.Show("Bienvenido maestro: " + email); Form1 nueva = new Form1(); this.Hide(); nueva.ShowDialog(); this.Show(); } else if (r2) { MessageBox.Show("Bienvenido alumno: " + email); Busqueda_Objeto nueva = new Busqueda_Objeto(); this.Hide(); ///nueva.btnUpdATE.Visible = false; nueva.btnEliminar.Visible = false; nueva.BtnAgregar.Visible = false; nueva.ShowDialog(); this.Show(); } else { MessageBox.Show("Usuario incorrecto"); } txtmailis.Text = ""; txtcontrais.Text = ""; }
public searchDataGrid(Form callingForm) { mainform = callingForm as Busqueda_Objeto; InitializeComponent(); }