Exemple #1
0
        public async Task Run()
        {
            CurrentOperation = "Checking for updates...";
            var updateAvailable = await _updateService.CheckForUpdates();

            if (updateAvailable)
            {
                CurrentOperation = "Updating application...";
                await Update();
            }

            CurrentOperation = "Initializing game data...";
            await _repository.Load();
        }
Exemple #2
0
 private void CheckForUpdates(object sender, RoutedEventArgs e)
 {
     _applicationUpdateService?.CheckForUpdates();
 }