//KHI KÍCH BUTTON THÊM private void ThemKhoa() { ChucNang = "F9"; Khoa_ThongTin Khoa = new Khoa_ThongTin(); A.GiaoDien.QuanLyKhoa QLHK = new A.GiaoDien.QuanLyKhoa(ChucNang, Khoa); QLHK.DuLieu = new QuanLyKhoa.DuLieuTruyenVe(LayDuLieu); QLHK.ShowDialog(this); XacNhanXoa = 0; txtTimKiem.Focus(); }
//KHI KÍCH BUTTON SỬA THÔNG TIN private void SuaKhoa() { ChucNang = "F10"; Khoa_ThongTin Khoa = new Khoa_ThongTin(); Khoa.MaKhoa = tbKhoa.Rows[DongChon].Cells[0].Value.ToString(); Khoa.TenKhoa = tbKhoa.Rows[DongChon].Cells[1].Value.ToString(); A.GiaoDien.QuanLyKhoa QLHK = new A.GiaoDien.QuanLyKhoa(ChucNang, Khoa); QLHK.DuLieu = new QuanLyKhoa.DuLieuTruyenVe(LayDuLieu); QLHK.ShowDialog(this); XacNhanXoa = 0; txtTimKiem.Focus(); }