public CustomFunctionsPresenter(ICustomFunctionsView view, ICommandLineHandler commandLineHandler, ISharedViewState sharedViewState)
        {
            _view = view;
            _commandLineHandler = commandLineHandler;
            _sharedViewState    = sharedViewState;
            var solutionExplorerPresenter = new SolutionExplorerPresenter(_view.SolutionExplorerView,
                                                                          _view.CustomFunctionsEditor, false);

            //_view.Load += LoadFileFromCommandLine;
            LoadFileFromCommandLine();
        }
Beispiel #2
0
        public CustomFunctionsPresenter(ICustomFunctionsView view, ICommandLineHandler commandLineHandler, ISharedViewState sharedViewState)
        {
            _view = view;
            _commandLineHandler = commandLineHandler;
            _sharedViewState    = sharedViewState;
            var solutionExplorerPresenter = new SolutionExplorerPresenter(_view.SolutionExplorerView,
                                                                          _view.CustomFunctionsEditor, false);

            _view.Load += (o, e) =>
            {
                string filepath;
                if (_commandLineHandler.TryGetCustomFunctionsDocument(out filepath))
                {
                    _view.CustomFunctionsEditor.NewDocument(filepath);
                    _sharedViewState.CurrentView = ViewName.CustomFunctions;
                }
            };
        }
 public CustomFunctionsPresenter(ICustomFunctionsView view)
 {
     _view = view;
     var solutionExplorerPresenter = new SolutionExplorerPresenter(_view.SolutionExplorerView,
                                                                   _view.CustomFunctionsEditor, false);
 }