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