private void TxtCod_TextChanged(object sender, EventArgs e) { string cod = txtCod.Text; CapaNegocio.CNAlumno obj = new CapaNegocio.CNAlumno(); GridLisAlum.DataSource = obj.BuscarAlum(1, cod, ""); }
private void TxtApe_TextChanged(object sender, EventArgs e) { try { string ape = txtApe.Text; CapaNegocio.CNAlumno obj = new CapaNegocio.CNAlumno(); GridLisAlum.DataSource = obj.BuscarAlum(2, "", ape); } catch (Exception ex) { } }
private void BtnGuardar_Click(object sender, EventArgs e) { CapaNegocio.CNAlumno obj = new CapaNegocio.CNAlumno(); try { string fecha = dateTimePicker1.Value.Date.ToShortDateString(); obj.IngresarMatricula(Convert.ToInt16(lblId.Text), cboTurno.SelectedItem.ToString(), cboPeriodo.SelectedItem.ToString(), Convert.ToInt16(lblSec.Text), Convert.ToInt16(cboCiclo.SelectedValue), fecha); MessageBox.Show("Se Matriculo Satisfactoriamente"); btnGuardar.Enabled = false; } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void BtnEliminar_Click(object sender, EventArgs e) { CapaNegocio.CNAlumno obj = new CapaNegocio.CNAlumno(); }