private void xemDanhSáchCácPhiênBảnToolStripMenuItem_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } ProductsModel product = (ProductsModel)ProductsBO.Instance.FindByPK(id); frmShowListVersion frm = new frmShowListVersion(); frm.Product = product; TextUtils.OpenForm(frm); }
private void btnShowListVersion_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } BaiThucHanhModel model = (BaiThucHanhModel)BaiThucHanhBO.Instance.FindByPK(id); frmShowListVersion frm = new frmShowListVersion(); frm.BaiThucHanh = model; TextUtils.OpenForm(frm); }