public ScriptingViewPresenter(IScriptingView view, IErrorHandler errorHandler) { _view = view; _errorHandler = errorHandler; _view.ProcessClicked += _view_ProcessClicked; SharedViewState.Instance.DefaultActions[ViewName.Scripting] = _view_ProcessClicked; var solutionExplorerPresenter = new SolutionExplorerPresenter(_view.SolutionExplorerView, _view.CodeEditorView, true); }
public ScriptingViewPresenter(IScriptingView view, ISharedViewState sharedViewState, IExceptionsHandler exceptionsHandler, ICodeEditorView customFunctionsEditor, IScriptEvaluator eval, ICommandLineHandler commandLineHandler) { _view = view; _sharedViewState = sharedViewState; _exceptionsHandler = exceptionsHandler; _customFunctionsEditor = customFunctionsEditor; _eval = eval; _commandLineHandler = commandLineHandler; _view.ProcessClicked += _view_ProcessClicked; _sharedViewState.DefaultActions[ViewName.Scripting] = _view_ProcessClicked; var solutionExplorerPresenter = new SolutionExplorerPresenter(_view.SolutionExplorerView, _view.CodeEditorView, true); //_view.Load += LoadFileFromCommandLine; LoadFileFromCommandLine(); }
public ScriptingViewPresenter(IScriptingView view, ISharedViewState sharedViewState, IExceptionsHandler exceptionsHandler, ICodeEditorView customFunctionsEditor, IScriptEvaluator eval, ICommandLineHandler commandLineHandler) { _view = view; _sharedViewState = sharedViewState; _exceptionsHandler = exceptionsHandler; _customFunctionsEditor = customFunctionsEditor; _eval = eval; _commandLineHandler = commandLineHandler; _view.ProcessClicked += _view_ProcessClicked; _sharedViewState.DefaultActions[ViewName.Scripting] = _view_ProcessClicked; var solutionExplorerPresenter = new SolutionExplorerPresenter(_view.SolutionExplorerView, _view.CodeEditorView, true); _view.Load += (o, e) => { string filepath; if (_commandLineHandler.TryGetCustomFunctionsDocument(out filepath)) { _view.CodeEditorView.NewDocument(filepath); _sharedViewState.CurrentView = ViewName.Scripting; } }; }