private void _barAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { BasicClass.cResult cr = new BasicClass.cResult(); cr.TextChanged += new BasicClass.TextChangedHandler(cr_TextChanged); Form fr = new frRemarkOne(cr, 0); fr.ShowDialog(); }
private void _barEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (gridView1.FocusedRowHandle > -1) { BasicClass.cResult cr = new BasicClass.cResult(); cr.TextChanged += new BasicClass.TextChangedHandler(cr_TextChanged); Form fr = new frRemarkOne(cr, int.Parse(gridView1.GetFocusedRowCellValue(_coID).ToString())); fr.ShowDialog(); } }