public void Refresh() { //if (_client._provider.CanCopy("31419")) // Console.WriteLine("Success"); //AvailableApplications = _client._provider.GetAvailableIds().Select(x => new RemoteSteamApp(x, _client._provider)); Task.Run(() => { try { var available = _provider.GetAvailableIds(); var results = available.Select(x => new RemoteSteamApp(x, _provider)); AvailableApplications = results; } catch (Exception ex) { GamePipeLib.Utils.Logging.Logger.Error(string.Format("Refresh exception on {0}", FriendName), ex); System.Windows.MessageBox.Show("Refresh exception:\n" + ex.Message, "", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Exclamation, System.Windows.MessageBoxResult.OK); } }); }