private void btn_nueva_pregunta_Click(object sender, EventArgs e) { try { frmTlh_preguntas_mant frm = new frmTlh_preguntas_mant(); frm.set_accion(Cl_Enumeradores.eTipo_action.grabar); frm.MdiParent = this.MdiParent; frm.Show(); } catch (Exception) { MessageBox.Show("Ha ocurrido un error, comuníquese con sistemas", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void llamar_formulario(Cl_Enumeradores.eTipo_action Accion) { try { frmTlh_preguntas_mant frm = new frmTlh_preguntas_mant(); frm.set_accion(Accion); if (Accion != Cl_Enumeradores.eTipo_action.grabar) { frm.set_info(info_pregunta); } frm.MdiParent = this.MdiParent; frm.Show(); } catch (Exception) { MessageBox.Show("Ha ocurrido un error, comuníquese con sistemas", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }