private void App_OnStartup(object sender, StartupEventArgs e) { if (!Settings.Default.Upgraded) { Settings.Default.Upgrade(); Settings.Default.Upgraded = true; Settings.Default.Save(); } BootLoader.Boot(); var mainWindow = BootLoader.Resolve <MainWindow>(); mainWindow.Show(); }
protected void Application_Start() { BootLoader.Boot(); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); GlobalConfiguration.Configuration .Formatters .JsonFormatter .SerializerSettings .ContractResolver = new CamelCasePropertyNamesContractResolver(); }