private void cmdGenerarFiniquito_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { frmRo_ActaFiniquito oFrmRo_ActaFiniquito = new frmRo_ActaFiniquito(); oFrmRo_ActaFiniquito.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); Log_Error_bus.Log_Error(ex.ToString()); } }
private void pu_setForm(Cl_Enumeradores.eTipo_action Accion) { try { frmRo_ActaFiniquito frm = new frmRo_ActaFiniquito(); frm.Event_frmRo_ActaFiniquito_FormClosing += frm_Event_frmRo_ActaFiniquito_FormClosing; if (Accion != Cl_Enumeradores.eTipo_action.grabar) { frm.setInfo(oRo_Acta_Finiquito_Info); } frm.setAccion(Accion); frm.MdiParent = this.MdiParent; frm.Show(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.InnerException.ToString()); } }