protected void Page_Init(object sender, EventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } var mvx = new CMvx(); mvx.RegisterSingleton <IConfiguracionDeConexion, frmMainMenu.ConfiguracionDeConexion>(new frmMainMenu.ConfiguracionDeConexion()); mvx.RegisterType <IBaseDeDatosServicio, BaseDeDatosServicio>(); mvx.RegisterType <ILiquidacionServicio, LiquidacionServicio>(); mvx.Register <IParametroServicio, ParametroServicio>(); mvx.RegisterType <IRutaServicio, RutaServicio>(); mvx.RegisterSingleton <ILiquidacionVista, FrmLiquidation>(this); mvx.RegisterType <ILiquidacionControlador, LiquidacionControlador>(); mvx.Resolve <ILiquidacionControlador>(); if (!Page.IsPostBack) { Session["UiVistaEncabezadoPendiente"] = null; Session["UiVistaPendienteDetalle"] = null; Session["UiListaRutaPendiente"] = null; Session["UiListaLiquidacionPendiente"] = null; Session["UiVistaLiquidacionesCompletadas"] = null; Session["UiVistaDepositos"] = null; Session["UiVistaDepositosLiquidacionesCompletadas"] = null; UiFecha.Value = DateTime.Today; UiFechaFinalCompletadas.Value = DateTime.Today; UiFechaInicialCompletadas.Value = DateTime.Today; VistaCargandosePorPrimeraVez?.Invoke(this, null); UsuarioDeseaObtenerRutas?.Invoke(this, new LiquidacionArgumento { Login = Session["LOGIN"].ToString() }); } }