private async void CheckCommandLine() { var userInputs = VepixCommandLineParser.ResultsInstance(); foreach (var treeFolder in userInputs.TreeFolders) { FolderTreeViewModel.TryLoad(treeFolder); } var searchPatterns = userInputs.SearchPatterns; var firstLoad = true; foreach (var folder in userInputs.Folders) { if (firstLoad) { SelectedPictureGridViewModel = await LoadAPictureGridViewModel(folder, searchPatterns); firstLoad = false; } else { await LoadAPictureGridViewModel(folder, searchPatterns); } } }
private async void OnOpenFolderCommand(SearchOption option) { string selectedPath; if (_fileExplorerDialogService.ShowFolderBrowserDialog(out selectedPath)) { if (option == SearchOption.AllDirectories) { FolderTreeViewModel.TryLoad(selectedPath); } SelectedPictureGridViewModel = await LoadAPictureGridViewModel(selectedPath); } }