Inheritance: ICommandLoader
Exemplo n.º 1
0
        public void SetUp()
        {
            _mocks = new MockRepository();

            _searchPath = new DirectoryInfo(Path.Combine(Path.GetTempPath(), "CmdLoaderTests"));
            _searchPath.Create();

            _commandLoader = _mocks.DynamicMock<ICommandAssemblyLoader>();
            _loader = new CommandLoader(_searchPath, _commandLoader);
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            _internalCommandManager = new CommandManager(this);
            _commandLoader = new CommandLoader(new DirectoryInfo(Path.Combine(Application.StartupPath, "Commands")));

            var historyPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Commander");
            historyPath = Path.Combine(historyPath, "history.txt");

            _commandHistoryManager = new CommandHistoryManager(new FileInfo(historyPath));
            _applicationSettingsManager = new ApplicationSettingsManager();
            _autoCompletePresenter = new AutoCompletePresenter(this, _commandHistoryManager);
            _clipboardHistory = new ClipboardHistoryManager();
            _clipboardHistoryPresenter = new ClipboardHistoryPresenter(_clipboardHistory, this, this);
            _shellIntegration = new Win7Shell(AppId, this);
        }