Пример #1
0
 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["TK_ID"];
     int currentID = -1;
     currentID = Convert.ToInt32(cellID.Value);           
     
     frmMEC f = new frmMEC(currentID);
     if (f.IsDisposed == false) st.myMDIMain.LoadFormF(f, false);
 }
Пример #2
0
 private void btnThemMoi_Click(object sender, EventArgs e)
 {
     frmMEC f = new frmMEC();
     f.Tag = this;
     if (f.IsDisposed == false) st.myMDIMain.LoadFormF(f,false);
 }       
Пример #3
0
 private void btnMEC_Click(object sender, EventArgs e)
 {
     frmMEC f = new frmMEC();
     if (f.IsDisposed == false) LoadFormF(f, false);
 }