private void _brAddNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { r.TextChanged += new BasicClass.TextChangedHandler(r_TextChanged); Form fr = new frEmployeeForms(r, 0, (int)BasicClass.Enums.Operation.Add); fr.ShowDialog(); }
private void _barView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (gridView3.FocusedRowHandle > -1) { Form fr = new frEmployeeForms(r, int.Parse(gridView3.GetFocusedRowCellValue(_coID).ToString()), (int)BasicClass.Enums.Operation.View); fr.ShowDialog(); } }