예제 #1
0
		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);

		}
예제 #2
0
		private void UpdateFileList()
		{
			_IconCacheQueue.ClearQueue();
			DataContext = new MainWindowDirectoryWrapper(_CurrentDirectory, _View.Dispatcher, _IconCacheQueue);
			_Config.StartupDirectory = _CurrentDirectory.FullName;
		}