Ejemplo n.º 1
0
        private void btnEditDemoCompetition_Click(object sender, EventArgs e)
        {
            int            rowindex = dgvDemoCompetition.CurrentRow.Index;
            int            code     = Convert.ToInt32(dgvDemoCompetition[0, rowindex].Value);
            string         subtract = dgvDemoCompetition[1, rowindex].Value.ToString();
            DEMO_COMPETION cEdit    = new DEMO_COMPETION()
            {
                demoCompID = code,
                subtractID = cbSubtractCom.SelectedValue.ToString(),
                expDate    = dtExp.Value,
                gradeid    = Convert.ToInt32(cbDemoKhoi.SelectedValue),
                iddemotest = Convert.ToInt32(cbDemoDe.SelectedValue),
            };

            TracNghiem.SuaKyThiThu(cEdit);
            OnLoad(e);
        }