private void DoRowDoubleClick(GridView view, Point pt) { if (CONSULT == 1) { } else { GridHitInfo info = view.CalcHitInfo(pt); if (info.InRow || info.InRowCell) { string colCaption = info.Column == null ? "N/A" : info.Column.GetCaption(); object valor = view.GetRowCellValue(info.RowHandle, "CODIGO"); COD_EMP = Convert.ToString(valor); } Objetivos_Evaluacion obj = new Objetivos_Evaluacion(COD_EMP, 1); this.Visible = false; obj.ShowDialog(); obj.FormClosed += new System.Windows.Forms.FormClosedEventHandler(FormClosed); obj.Close(); obj = null; // this.Close(); } }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Objetivos_Evaluacion objetivo = new Objetivos_Evaluacion(COD_EMPLEADO, 2); objetivo.FormClosed += new System.Windows.Forms.FormClosedEventHandler(FormClosed); objetivo.ShowDialog(); }