コード例 #1
0
        private void btnEliminarEsp_Click(object sender, EventArgs e)
        {
            MateriaComponent materiaComponent = new MateriaComponent();

            materiaComponent.Delete(int.Parse(mgEspecialidades.CurrentRow.Cells[0].Value.ToString()));
            ValidadoresComponent.Baja("Materia", this);
            llenargrilla();
        }
コード例 #2
0
ファイル: frmExamen.cs プロジェクト: ELMONITO007/DiplomaOk
        private void btnEliminarMateria_Click(object sender, EventArgs e)
        {
            if (verificarCampoMateria())
            {
                MateriaComponent materiaComponent = new MateriaComponent();

                materiaComponent.Delete(int.Parse(mgMateria.CurrentRow.Cells[0].Value.ToString()));
                llenarGrillaMateria();
                txtMateria.Text = "";
            }
        }