private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (parentID == null) return; frmXSQD pd = new frmXSQD(); pd.parentobj = ParentObj; pd.ShowDialog(); }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (parentID == null) return; frmXSQD pd = new frmXSQD(); pd.parentobj = ParentObj; if (gridView1.FocusedRowHandle >= 0) { pd.xsobj = gridView1.GetRow(gridView1.FocusedRowHandle) as PJ_06sbxs; } pd.ShowDialog(); }