private void btnXemChiTiet_Click(object sender, EventArgs e) { if (gList.PrimaryGrid.DataSource == null) return; if (gList.PrimaryGrid.SelectedRows == null) return; if (gList.PrimaryGrid.GetSelectedRows().Count < 1) return; GridElement ele = gList.PrimaryGrid.GetSelectedRows()[0]; GridRow currentRow = ele as GridRow; if (currentRow == null) return; GridCell cellID = currentRow["HD_ID"]; int currentID = -1; currentID = Convert.ToInt32(cellID.Value); frmGC_HDGC f = new frmGC_HDGC(currentID); if (f.IsDisposed == false) st.myMDIMain.LoadFormF(f, false); }
private void btnThemMoi_Click(object sender, EventArgs e) { frmGC_HDGC f = new frmGC_HDGC(); f.Tag = this; if (f.IsDisposed == false) st.myMDIMain.LoadFormF(f,false); }
private void btnHDGC_Click(object sender, EventArgs e) { frmGC_HDGC f = new frmGC_HDGC(); if (f.IsDisposed == false) LoadFormF(f, false); }