public MainPresenter( IWindowManager windowManager, IMainView view, IConfiguration config, IIoRepository repository, IconCacheQueue iconCacheQueue) { _WindowManager = windowManager; _View = view; _Config = config; _Repo = repository; _IconCacheQueue = iconCacheQueue; string currentDirectory = _Config.StartupDirectory ?? Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); _CurrentDirectory = _Repo.GetDirectory(currentDirectory); SetupView(currentDirectory); }
private void CurrentDirectoryEnter() { _CurrentDirectory = _Repo.GetDirectory(_View.CurrentDirectory); UpdateFileList(); }