コード例 #1
0
		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);
		}
コード例 #2
0
        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);
        }
コード例 #3
0
 private void CurrentDirectoryEnter()
 {
     _CurrentDirectory = _Repo.GetDirectory(_View.CurrentDirectory);
     UpdateFileList();
 }