Ejemplo n.º 1
0
        private void btnSuaDiem_Click(object sender, EventArgs e)
        {
            string strMaMonHoc = cbxMonHoc.SelectedValue.ToString().Trim();
            int    nLan        = cbxLanThu.SelectedIndex + 1;

            if (NhapDiemBUL.UpdateBangDiemSinhVien(m_lstBangDiem, strMaMonHoc, nLan) == false)
            {
                MessageBox.Show("Cập nhật điểm thất bại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            MessageBox.Show("Cập nhật điểm thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            SetGUI(true);
        }