Пример #1
0
        /// <summary>
        /// Author          Date        Comment
        /// BONGVX                      Them thong tin GV
        /// </summary>
        void actionMenuExpert_PressNew(object sender, EventArgs e)
        {
            frmGiangVienAdd oGVAdd = new frmGiangVienAdd(mAccount, 0, idGV);

            oGVAdd.ShowDialog();
            displayExpert();
        }
Пример #2
0
        /// <summary>
        /// Author          Date        Comment
        /// BONGVX                      Sua thong tin GV
        /// </summary>
        void actionMenuExpert_PressEdit(object sender, EventArgs e)
        {
            String value = "" + gridViewGiangVien.GetFocusedRowCellValue("Id");

            int.TryParse(value, out idGV);
            if (idGV > 0)
            {
                frmGiangVienAdd oGVEdit = new frmGiangVienAdd(mAccount, 1, idGV);
                oGVEdit.ShowDialog();
                displayExpert();
            }
            else
            {
                MessageBox.Show("Hãy chọn giảng viên cần cập nhật", "Thông báo");
            }
        }