//xem, chỉnh sửa thông tin nhóm thực hành private void dgvNhomTH_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { int rowSelected = dgvNhomTH.CurrentRow.Index; eNhomThucHanh n = new eNhomThucHanh(); foreach (eNhomThucHanh x in lstTH) { if (x.ID_NhomThucHanh == dgvNhomTH.Rows[rowSelected].Cells[0].Value.ToString().Trim()) { n = x; break; } } if (n.LichHoc_NhomThucHanh == null) { n.LichHoc_NhomThucHanh = new LichHocBLL().GetLichHoc_NhomThucHanh(n.ID_NhomThucHanh); } frmNhomThucHanh frm = new frmNhomThucHanh(n); frm.ShowDialog(); } catch (Exception) { throw; } }
private void btnAddNhomTH_Click(object sender, EventArgs e) { frmNhomThucHanh frm = new frmNhomThucHanh(txtID.Text.Trim()); frm.ShowDialog(); }