Example #1
0
 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;
 }
Example #2
0
 public static SearchCommand GetSearchCommand(ListView listView, PathHistoryCache cache, string pattern, IFileService service)
 {
     return(new SearchCommand(listView, cache, pattern, service));
 }
Example #3
0
 public static RefreshCommand GetRefreshCommand(PathHistoryCache cache, ListView listView, string path, IFileService service)
 {
     return(new RefreshCommand(cache, listView, path, service));
 }
Example #4
0
 public static LoadListCommand GetLoadCommand(PathHistoryCache cache, ListView listView, string path, IFileService service)
 {
     return(new LoadListCommand(cache, listView, path, service));
 }
Example #5
0
 public static ForwardCommand GetForwardCommand(PathHistoryCache cache, ListView listView, TextBox pathTbBox, IFileService service)
 {
     return(new ForwardCommand(cache, listView, pathTbBox, service));
 }
Example #6
0
 public static InitCommand GetInitCommand(PathHistoryCache cache, ListView listView, TreeView treeView, TextBox pathTbBox, IFileService service)
 {
     return(new InitCommand(cache, listView, treeView, pathTbBox, service));
 }