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 frCompanyOne(cr, 0, _typeID, dt); fr.ShowDialog(); }
private void _barEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (gridView1.FocusedRowHandle > -1) { int id = (int)gridView1.GetFocusedRowCellValue(_coID); BasicClass.cResult cr = new BasicClass.cResult(); cr.RowChanged += new BasicClass.RowChangedHandler(cr_RowChanged); Form fr = new frCompanyOne(cr, id, _typeID, dt); fr.ShowDialog(); } }