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(); }
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); }