public SelectFolderCommand(ISearchFolder searchFolderProvider, ISearchFolderChanger searchFolderChanger) { SearchFolderChanger = searchFolderChanger; SearchFolderProvider = searchFolderProvider; }
public SearchApplication(IApplicationCommandController controller, ISearchFolder searchFolderProvider, ISearchArguments searchArgumentsProvider, ISearchFolderChanger searchFolderChanger) { Controller = controller; Controller.AddCommand(new SelectFolderCommand(searchFolderProvider, searchFolderChanger), true); Controller.AddCommand(new SearchCommand(searchFolderProvider, searchArgumentsProvider), true); }