コード例 #1
0
        protected void btnAceptar_Click(object sender, EventArgs e)
        {
            AlumnoInscripcion aluIns = new AlumnoInscripcion();

            aluIns.ID   = Convert.ToInt32(txtIDInscripcion.Text);
            aluIns.Nota = Convert.ToInt32(ddlNota.SelectedValue);

            AluInscLogic aluInsLogic = new AluInscLogic();

            aluInsLogic.UpdateNota(aluIns);

            this.formPanelInscripcion.Visible = false;
            this.LoadGridAlumnosInscriptos(this.SelectedIDCurso);
        }
コード例 #2
0
        private void btnGuardar_Click(object sender, EventArgs e)
        {
            AlumnoInscripcion aluIns = new AlumnoInscripcion();

            aluIns.ID   = this.IdInsc;
            aluIns.Nota = Convert.ToInt32(this.cbxNota.SelectedItem);
            AluInscLogic aluInscLog = new AluInscLogic();

            try
            {
                aluInscLog.UpdateNota(aluIns);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                this.Close();
            }
        }