public async void LoadIterations(string directory) { LocalStorageProvider provider = new LocalStorageProvider(); StorageResult result = await provider.LoadStoredIterationsAsync(directory); if ((result.Status == StorageStatus.Success || result.Status == StorageStatus.Warning) && result.Result != null) { BrowsedIterations = new ObservableCollection <BrowsedIteration>((List <BrowsedIteration>)result.Result); } }
public async void LoadIterations(string directory) { LocalStorageProvider provider = new LocalStorageProvider(); StorageResult result = await provider.LoadStoredIterationsAsync(directory, CheckSubFolder); if (result.Status == StorageStatus.Success || result.Status == StorageStatus.Warning) { BrowsedIterations = new ObservableCollection <BrowsedIteration>((List <BrowsedIteration>)result.Result); // Generate statistics GenerateBasicStatistics(); } }