Exemple #1
0
        private void b_Click(object sender, EventArgs e)
        {
            AlumnoABM mForm = new AlumnoABM();

            mForm.StartPosition = FormStartPosition.CenterParent;
            mForm.TipoOperacion = Constantes.TiposOperacion.Alta;
            mForm.ShowDialog(this);
            Actualizar();
        }
Exemple #2
0
 private void btnVer_Click(object sender, EventArgs e)
 {
     if (grdAlumnos.SelectedRows.Count > 0)
     {
         int       mId   = int.Parse(grdAlumnos.SelectedRows[0].Cells[0].Value.ToString());
         AlumnoABM mForm = new AlumnoABM();
         mForm.StartPosition = FormStartPosition.CenterParent;
         mForm.AlumnoAEditar = (new AlumnoBL()).Obtener(mId);
         mForm.TipoOperacion = Constantes.TiposOperacion.Consulta;
         mForm.ShowDialog(this);
         Actualizar();
     }
     else
     {
         MessageBox.Show("Debe seleccionar un Alumno para eliminar");
     }
 }