Пример #1
0
 private void HandleRefreshDemosMessage(RefreshDemosMessage msg)
 {
     DispatcherHelper.CheckBeginInvokeOnUI(
         async() =>
     {
         List <string> folders = await _cacheService.GetFoldersAsync();
         Folders = new ObservableCollection <string>(folders);
         await LoadDemosHeader();
     });
 }
Пример #2
0
		private void HandleRefreshDemosMessage(RefreshDemosMessage msg)
		{
			DispatcherHelper.CheckBeginInvokeOnUI(
			async () =>
			{
				Folders = AppSettings.GetFolders();
				await LoadDemosHeader();
			});
		}
Пример #3
0
		private void HandleRefreshDemosMessage(RefreshDemosMessage msg)
		{
			DispatcherHelper.CheckBeginInvokeOnUI(
			async () =>
			{
				List<string> folders = await _cacheService.GetFoldersAsync();
				Folders = new ObservableCollection<string>(folders);
				await LoadDemosHeader();
			});
		}
Пример #4
0
		private void HandleRefreshDemosMessage(RefreshDemosMessage msg)
		{
			DispatcherHelper.CheckBeginInvokeOnUI(
			async () =>
			{
				try
				{
					List<string> folders = await _cacheService.GetFoldersAsync();
					Folders = new ObservableCollection<string>(folders);
					await LoadDemosHeader();
				}
				catch (Exception e)
				{
					Logger.Instance.Log(e);
				}
				finally
				{
					IsBusy = false;
					HasNotification = false;
				}
			});
		}