private void btnThem_Click(object sender, EventArgs e)
        {
            var f = new frmQuaTrinhHocTapChiTiet();

            if (f.ShowDialog() == DialogResult.OK)
            {
            }
        }
        private void BtnThem_Click(object sender, EventArgs e)
        {
            var f = new frmQuaTrinhHocTapChiTiet(null, maSinhVien, pathLearningHistoryDataFile);

            if (f.ShowDialog() == DialogResult.OK)
            {
                loadDataHistory(maSinhVien);
            }
        }
Beispiel #3
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            var f = new frmQuaTrinhHocTapChiTiet();

            if (f.ShowDialog() == DialogResult.OK)
            {
                //Tiến hành nạp lại dữ liệu lên lưới
            }
        }
Beispiel #4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var f = new frmQuaTrinhHocTapChiTiet(pathHistoryLearningDataFile, null, txtMaSV.Text);

            if (f.ShowDialog() == DialogResult.OK)
            {
                loadDataGridView(txtMaSV.Text);
                //Tiến hành nạp lại dữ liệu lên lưới
            }
        }
Beispiel #5
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            var f = new frmQuaTrinhHocTapChiTiet(null, maSinhVien, pathHistoryFile);

            if (f.ShowDialog() == DialogResult.OK)
            {
                // Tiến hành nạp lại dữ liệu lên lưới
                reloadDataHistory(maSinhVien);
            }
        }
        private void btnSua_Click(object sender, EventArgs e)
        {
            var histoty = bdsQuaTrinhHocTap.Current as HistoryLearning;

            if (histoty != null)
            {
                var f = new frmQuaTrinhHocTapChiTiet(histoty);
                if (f.ShowDialog() == DialogResult.OK)
                {
                }
            }
        }
Beispiel #7
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            var history = bdsQuaTrinhHocTap.Current as HistoryLearning;

            if (history != null)
            {
                var f = new frmQuaTrinhHocTapChiTiet(history);
                if (f.ShowDialog() == DialogResult.OK)
                {
                    //Tiến hành nạp lại dữ liệu lên lưới
                }
            }
        }
Beispiel #8
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var history = bdsQuaTrinhHocTap.Current as HistoryLearning;

            if (history != null)
            {
                var f = new frmQuaTrinhHocTapChiTiet(pathHistoryLearningDataFile, history, null);
                if (f.ShowDialog() == DialogResult.OK)
                {
                    loadDataGridView(txtMaSV.Text);
                    //Tiến hành nạp lại dữ liệu lên lưới
                }
            }
        }
        private void BtnSua_Click(object sender, EventArgs e)
        {
            var history = bdsQuaTrinhHocTap.Current as HistoryLearning;

            if (history != null)
            {
                var f = new frmQuaTrinhHocTapChiTiet(history, maSinhVien, pathLearningHistoryDataFile);
                if (f.ShowDialog() == DialogResult.OK)
                {
                    // Tiến hành nạp lại dữ liệu lên lưới
                    loadDataHistory(maSinhVien);
                }
            }
        }
Beispiel #10
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            var hl        = (HistoryLearning)bdsQuaTrinhHocTap.Current;
            var idStudent = hl.IDStudent;
            var f         = new frmQuaTrinhHocTapChiTiet(idStudent: hl.IDStudent);

            if (f.ShowDialog() == DialogResult.OK)
            {
                //Tiến hành nạp lại dữ liệu lên lưới
                var newHistoryLearningList = StudentService.GetHistoryLearning(pathHistoryLearningDataFile, idStudent);
                bdsQuaTrinhHocTap.DataSource = newHistoryLearningList;
                bdsQuaTrinhHocTap.ResetBindings(true);
            }
        }