Exemple #1
0
        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used such as when the application is launched to open a specific file.
        /// </summary>
        /// <param name="e">Details about the launch request and process.</param>
        protected override async void OnLaunched(LaunchActivatedEventArgs e)
        {
            if (!e.PrelaunchActivated)
            {
                await ActivationService.ActivateAsync(e);
            }
            string DataPath = Windows.Storage.ApplicationData.Current.LocalFolder.Path;

            ApplicationLogging.LoggerFactory.AddCgmLog(DataPath);

            ApplicationLogging.LoggerFactory.AddEventAggregatorLog();

            using (Communication.Data.Repository.CgmUnitOfWork uow = new Communication.Data.Repository.CgmUnitOfWork())
            {
                uow.CheckDatabaseVersion(DataPath);
                uow.Setting.CheckSettings();
            }
            //check for nightscout settings
        }