예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        private async void OnOpenFolderCommand(SearchOption option)
        {
            string selectedPath;

            if (_fileExplorerDialogService.ShowFolderBrowserDialog(out selectedPath))
            {
                if (option == SearchOption.AllDirectories)
                {
                    FolderTreeViewModel.TryLoad(selectedPath);
                }

                SelectedPictureGridViewModel = await LoadAPictureGridViewModel(selectedPath);
            }
        }