Exemple #1
0
        private async Task LaunchApplicationAsync(string page, object launchParam)
        {
            try
            {
                _applicationDataService     = Container.Resolve <IApplicationDataService>();
                _userDatagramService        = Container.Resolve <IUserDatagramService>();
                _transmissionControlService = Container.Resolve <ITransmissionControlService>();
                _databaseService            = Container.Resolve <IDatabaseService>();
                if (string.IsNullOrEmpty(_applicationDataService.GetSetting <string>("Guid")))
                {
                    _applicationDataService.SaveSetting("Guid", Guid.NewGuid().ToString());
                }
                ThemeSelectorService.SetRequestedTheme();
                await SetSelectedLanguage();

                NavigationService.Navigate(page, launchParam);
                Window.Current.Activate();
            }
            catch (Exception e)
            {
                if (_databaseService != null)
                {
                    await _databaseService.AddExceptionLogItem(new ExceptionLogItem()
                    {
                        Message = e.Message, Source = e.Source, StackTrace = e.StackTrace
                    });
                }
            }
            if (_databaseService != null && _exceptionLogItems != null && _exceptionLogItems.Count > 0)
            {
                _exceptionLogItems.ForEach(x => _databaseService.AddExceptionLogItem(x));
            }

            //return Task.CompletedTask;
        }
Exemple #2
0
        private async Task LaunchApplicationAsync(string page, object launchParam)
        {
            ThemeSelectorService.SetRequestedTheme();
            NavigationService.Navigate(page, launchParam);
            Window.Current.Activate();
            await Container.Resolve <IWhatsNewDisplayService>().ShowIfAppropriateAsync();

            await Container.Resolve <IFirstRunDisplayService>().ShowIfAppropriateAsync();

            await Task.CompletedTask;
        }
Exemple #3
0
        private async Task LaunchApplicationAsync(string page, object launchParam)
        {
            ThemeSelectorService.SetRequestedTheme();

            // ***
            // *** Register Color for session state saving.
            // ***
            this.SessionStateService.RegisterKnownType(typeof(Color));

            this.NavigationService.Navigate(page, launchParam);
            Window.Current.Activate();
            await Task.CompletedTask;
        }
 private async Task StartupAsync()
 {
     ThemeSelectorService.SetRequestedTheme();
     await Task.CompletedTask;
 }
Exemple #5
0
 private void StartupAsync()
 {
     ThemeSelectorService.SetRequestedTheme();
     //await FeedStore.CheckDownloadsPresent();
     //await Task.CompletedTask;
 }
 private async Task StartupAsync()
 {
     // sets the theme that was fetched in method above
     ThemeSelectorService.SetRequestedTheme();
     await Task.CompletedTask;
 }