private void AddFolderToDisplay(string newFolder)
        {
            if (newFolder == null || FoldersToSearch.Contains(newFolder))
            {
                return;
            }

            FoldersToSearch.Add(newFolder);

            UpdateCommands();
        }
        private async void SearchExecute()
        {
            await RunAsyncMethod(() =>
            {
                System.Windows.Application.Current.Dispatcher.Invoke(() => FoldersToDelete.Clear());

                var folders = _steamFolderService.Search(FoldersToSearch.ToList()).OrderBy(x => x.Path);

                System.Windows.Application.Current.Dispatcher.Invoke(() => FoldersToDelete.AddRange(folders));
            });
        }
 private bool CanSearch()
 {
     return(CanUseControls && FoldersToSearch.Any());
 }
 private bool CanRemoveFolder()
 {
     return(CanUseControls && FoldersToSearch.Any() && SelectedFolder != null);
 }
 private void RemoveFolderExecute()
 {
     FoldersToSearch.Remove(SelectedFolder);
 }