public FileViewModel(ListView listView, TreeView treeView, TextBox pathTb, IFileService service, IFileOperationService fileOperationService, IDialogService dialogService) { _cache = new PathHistoryCache(); _currentOperation = FileOperation.None; _selectedFileItems = new List <FileItemInfo>(); Invoker = new CommandManager(); FileList = listView; FileTree = treeView; PathTb = pathTb; FileService = service; FileOperationService = fileOperationService; DialogService = dialogService; }
public static SearchCommand GetSearchCommand(ListView listView, PathHistoryCache cache, string pattern, IFileService service) { return(new SearchCommand(listView, cache, pattern, service)); }
public static RefreshCommand GetRefreshCommand(PathHistoryCache cache, ListView listView, string path, IFileService service) { return(new RefreshCommand(cache, listView, path, service)); }
public static LoadListCommand GetLoadCommand(PathHistoryCache cache, ListView listView, string path, IFileService service) { return(new LoadListCommand(cache, listView, path, service)); }
public static ForwardCommand GetForwardCommand(PathHistoryCache cache, ListView listView, TextBox pathTbBox, IFileService service) { return(new ForwardCommand(cache, listView, pathTbBox, service)); }
public static InitCommand GetInitCommand(PathHistoryCache cache, ListView listView, TreeView treeView, TextBox pathTbBox, IFileService service) { return(new InitCommand(cache, listView, treeView, pathTbBox, service)); }