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);
        }
 public MainWindowDirectoryWrapper(IDirectoryObject directoryObject, Dispatcher uiDispatcher, IconCacheQueue iconCacheQueue)
 {
     IconCache        = iconCacheQueue;
     _DirectoryObject = directoryObject;
     UiDispatcher     = uiDispatcher;
 }
Esempio n. 3
0
 public MainWindowFile(IFileSystemObject fileSystemObject, IconCacheQueue iconCacheQueue)
 {
     _FileSystemObject = fileSystemObject;
     _IconCache        = iconCacheQueue;
 }