private void gvThuePhong_DoubleClick(object sender, EventArgs e) { string mathuephong = gvThuePhong.GetRowCellValue(gvThuePhong.FocusedRowHandle, "Mã TP").ToString(); frmService f = new frmService(mathuephong); f.MdiParent = frmHome.ActiveForm; f.Show(); }
private void btnSuDungDichVu_ItemClick(object sender, ItemClickEventArgs e) { Form frm = KiemTraTonTai(typeof(frmService)); if (frm != null) { frm.Activate(); } else { frmService f = new frmService(); IsMdiContainer = true; f.MdiParent = this; f.Show(); } }