private void SetupView(string currentDirectory) { _View.SizeChanged += ViewSizeChanged; _View.Width = _Config.MainViewWidth; _View.Height = _Config.MainViewHeight; _View.UpdateFileList = UpdateFileList; _View.GotoSelectedItem = (selectedItem) => GotoSelectedItem(selectedItem); _View.MoveRight = MoveRight; _View.MoveLeft = MoveLeft; _View.MoveToParent = MoveToParent; _View.CurrentDirectoryEnter = CurrentDirectoryEnter; _View.KeyboardSearch = KeyboardSearch; DataContext = new MainWindowDirectoryWrapper(_CurrentDirectory, _View.Dispatcher, _IconCacheQueue); }
private void UpdateFileList() { _IconCacheQueue.ClearQueue(); DataContext = new MainWindowDirectoryWrapper(_CurrentDirectory, _View.Dispatcher, _IconCacheQueue); _Config.StartupDirectory = _CurrentDirectory.FullName; }