コード例 #1
0
ファイル: App.xaml.cs プロジェクト: pihalve/player
        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();
        }
コード例 #2
0
        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();
        }