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(); }
private void CheckForUpdates(object sender, RoutedEventArgs e) { _applicationUpdateService?.CheckForUpdates(); }