private void HandleSelectedAccountChangedMessage(SelectedAccountChangedMessage msg)
 {
     if (Properties.Settings.Default.SelectedStatsAccountSteamID != 0)
     {
         Application.Current.Dispatcher.Invoke(async() =>
         {
             HasNotification     = true;
             IsBusy              = true;
             NotificationMessage = "Searching account's last rank...";
             DataGridDemosCollection.Refresh();
             LastRankAccountStats = await _demosService.GetLastRankAccountStatsAsync();
             IsBusy          = false;
             HasNotification = false;
             CommandManager.InvalidateRequerySuggested();
         });
     }
 }
		private void HandleSelectedAccountChangedMessage(SelectedAccountChangedMessage msg)
		{
			if (Properties.Settings.Default.SelectedStatsAccountSteamID != 0)
			{
				Application.Current.Dispatcher.Invoke(async () =>
				{
					HasNotification = true;
					IsBusy = true;
					NotificationMessage = "Searching account's last rank...";
					DataGridDemosCollection.Refresh();
					LastRankAccountStats = await _demosService.GetLastRankAccountStatsAsync();
					IsBusy = false;
					HasNotification = false;
					CommandManager.InvalidateRequerySuggested();
				});
			}
		}
		private void HandleSelectedAccountChangedMessage(SelectedAccountChangedMessage msg)
		{
			DispatcherHelper.CheckBeginInvokeOnUI(
			async () =>
			{
				await RefreshLastRankAccount();
			});
		}