private void ucGe_Menu_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                _CentroCostoNivelInfo = (ct_Centro_costo_nivel_Info)gridViewNivel.GetFocusedRow();

                if (_CentroCostoNivelInfo != null)
                {
                    frm = new frmCon_CentroCostos_Nivel_Mant();
                    frm.event_frmCon_CentroCostos_Nivel_Mant_FormClosing += frm_event_frmCon_CentroCostos_Nivel_Mant_FormClosing;
                    frm.Text = frm.Text + "***MODIFICAR REGISTRO***";
                    frm._CentroCostoNivelInfo = _CentroCostoNivelInfo;
                    frm.set_CentroCostoNivel(_CentroCostoNivelInfo);
                    frm.set_Accion(Cl_Enumeradores.eTipo_action.actualizar);
                    frm.MdiParent = this.MdiParent;
                    frm.Show();
                }
                else
                {
                    MessageBox.Show("Seleccione un Registro ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return;
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 private void ucGe_Menu_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         frm = new frmCon_CentroCostos_Nivel_Mant();
         frm.event_frmCon_CentroCostos_Nivel_Mant_FormClosing += frm_event_frmCon_CentroCostos_Nivel_Mant_FormClosing;
         frm.Text = frm.Text + "***NUEVO REGISTRO***";
         frm.set_Accion(Cl_Enumeradores.eTipo_action.grabar);
         frm.MdiParent = this.MdiParent;
         frm.Show();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }