/// <summary> /// Constructor por default del presentador /// </summary> /// <param name="vista">Vista que será gestionada por el presentador</param> public ConsultarConfigurarAlertaPRE(IConsultarConfigurarAlertaVIS vista) { try { this.vista = vista; this.dctx = FacadeBR.ObtenerConexion(); this.controlador = new ConfiguracionAlertaBR(); } catch (Exception ex) { this.vista.MostrarMensaje("Inconsistencias en la configuracion", ETipoMensajeIU.ERROR, nombreClase + ex.Message); } }
/// <summary> /// Constructor por default del presentador /// </summary> /// <param name="vista">Vista que será gestionada por el presentador</param> /// <param name="vistaConfigurarNotificacion">Vista que mostrará los campos del registro procesado</param> public RegistrarConfigurarAlertaPRE(IRegistrarConfigurarAlertaVIS vista, IucConfigurarAlertaVIS vistaConfigurarNotificacion) { try { this.vista = vista; this.presentadorDetalle = new ucConfigurarAlertaPRE(vistaConfigurarNotificacion); this.controlador = new ConfiguracionAlertaBR(); this.dctx = FacadeBR.ObtenerConexion(); } catch (Exception ex) { this.vista.MostrarMensaje("Inconsistencias en los parámetros de configuración", ETipoMensajeIU.ERROR, nombreClase + ".RegistrarOperadorPRE: " + ex.GetBaseException().Message); } }