private void HandleRefreshDemosMessage(RefreshDemosMessage msg) { DispatcherHelper.CheckBeginInvokeOnUI( async() => { List <string> folders = await _cacheService.GetFoldersAsync(); Folders = new ObservableCollection <string>(folders); await LoadDemosHeader(); }); }
private void HandleRefreshDemosMessage(RefreshDemosMessage msg) { DispatcherHelper.CheckBeginInvokeOnUI( async () => { Folders = AppSettings.GetFolders(); await LoadDemosHeader(); }); }
private void HandleRefreshDemosMessage(RefreshDemosMessage msg) { DispatcherHelper.CheckBeginInvokeOnUI( async () => { List<string> folders = await _cacheService.GetFoldersAsync(); Folders = new ObservableCollection<string>(folders); await LoadDemosHeader(); }); }
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; } }); }