private void _barAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { BasicClass.cResult cr = new BasicClass.cResult(); cr.RowChanged += new BasicClass.RowChangedHandler(cr_RowChanged); Form fr = new frSizeOne(cr, 0, dt, dtMT); fr.ShowDialog(); }
private void _barEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (gridView1.FocusedRowHandle < 0) { return; } BasicClass.cResult cr = new BasicClass.cResult(); cr.RowChanged += new BasicClass.RowChangedHandler(cr_RowChanged); Form fr = new frSizeOne(cr, int.Parse(gridView1.GetFocusedRowCellValue(_coID).ToString()), dt, dtMT); fr.ShowDialog(); }