Example #1
0
        public App()
        {
            InitializeComponent();
            SplashFactory = (e) => new Views.Splash(e);

            #region app settings

            // some settings must be set in app.constructor
            var settings = SettingsService.Instance;
            RequestedTheme             = settings.AppTheme;
            CacheMaxDuration           = settings.CacheMaxDuration;
            ShowShellBackButton        = settings.UseShellBackButton;
            AutoSuspendAllFrames       = true;
            AutoRestoreAfterTerminated = true;
            AutoExtendExecutionSession = true;

            #endregion

            using (var EFR = new EFRepositoryContext())
            {
                EFR.Database.Migrate();
            }

            UWPFolder    folder = new UWPFolder();
            EFRepository EFRepo = new EFRepository();
            HockeyClient.Current.Configure("439e0c88350044518bc86c583b8640c6");

            ServCon = ServicesController.Instance;
            if (false == ServCon.IsConfigured)
            {
                ServCon.Configure(EFRepo, folder);
            }
        }