public OpenCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor) { Icon = Resources.openToolStripButtonImage; Text = MenuStrings.openToolStripButton_Text; ToolTip = MenuStrings.openToolStripButton_Text; ShortcutKeyString = "Ctrl+O"; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; // this.mainFormView = mainFormView; }
public SaveAsCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor) { // this.Icon = Resources.save; Text = MenuStrings.saveAsToolStripMenuItem_Text; ToolTip = MenuStrings.saveAsToolStripMenuItem_Text; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; // this.mainFormView = mainFormView; }
public PrintPreviewCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, IMainForm mainFormView) { Icon = Resources.printPreviewToolStripMenuItemImage; Text = MenuStrings.printPreviewToolStripMenuItem_Text; ToolTip = MenuStrings.printPreviewToolStripMenuItem_Text; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; this.mainFormView = mainFormView; }
public UndoCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, IMainForm mainFormView) { //this.Icon = Resources.copyToolStripButtonImage; Text = MenuStrings.undoToolStripMenuItem_Text; ToolTip = MenuStrings.undoToolStripMenuItem_Text; ShortcutKeyString = "Ctrl+Z"; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; this.mainFormView = mainFormView; // this.mainFormView = mainFormView; }
public SaveCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, ISharedViewState sharedViewState) { ShortcutKeyString = "Ctrl+S"; Icon = Resources.saveToolStripButtonImage; Text = MenuStrings.saveToolStripButton_Text; ToolTip = MenuStrings.saveToolStripButton_Text; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; _sharedViewState = sharedViewState; // this.mainFormView = mainFormView; }
public UndoCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, ISharedViewState sharedViewState, IApplicationManager applicationManager) { //this.Icon = Resources.copyToolStripButtonImage; Text = MenuStrings.undoToolStripMenuItem_Text; ToolTip = MenuStrings.undoToolStripMenuItem_Text; ShortcutKeyString = "Ctrl+Z"; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; _sharedViewState = sharedViewState; _applicationManager = applicationManager; // this.mainFormView = mainFormView; }
public CopyCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, ISharedViewState sharedViewState, IApplicationManager applicationManager) { Icon = Resources.copyToolStripButtonImage; Text = MenuStrings.copyToolStripButton_Text; ToolTip = MenuStrings.copyToolStripButton_Text; ShortcutKeyString = "Ctrl+C"; this._scriptingCodeEditor = scriptingCodeEditor; this._customFunctionsCodeEditor = customFunctionsCodeEditor; _sharedViewState = sharedViewState; _applicationManager = applicationManager; }
public OpenCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, ISharedViewState sharedViewState, IOpenFileDialog openFileDialog) { Icon = Resources.openToolStripButtonImage; Text = MenuStrings.openToolStripButton_Text; ToolTip = MenuStrings.openToolStripButton_Text; ShortcutKeyString = "Ctrl+O"; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; _sharedViewState = sharedViewState; _openFileDialog = openFileDialog; _openFileDialog.Filter = HandledFilesInformation.TslFilesFIlter; }
public PasteCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, IMainForm mainFormView) { ShortcutKeyString = "Ctrl+V"; Icon = Resources.pasteToolStripButtonImage; Text = MenuStrings.pasteToolStripButton_Text; ToolTip = MenuStrings.pasteToolStripButton_Text; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; this.mainFormView = mainFormView; // this.mainFormView = mainFormView; }
public PasteCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, ISharedViewState sharedViewState, IApplicationManager applicationManager) { ShortcutKeyString = "Ctrl+V"; Icon = Resources.pasteToolStripButtonImage; Text = MenuStrings.pasteToolStripButton_Text; ToolTip = MenuStrings.pasteToolStripButton_Text; this.scriptingCodeEditor = scriptingCodeEditor; this.customFunctionsCodeEditor = customFunctionsCodeEditor; _sharedViewState = sharedViewState; _applicationManager = applicationManager; // this.mainFormView = mainFormView; }
public PrintCommand(ICanFileEdit scriptingCodeEditor, ICanFileEdit customFunctionsCodeEditor, ISharedViewState sharedViewState, IApplicationManager applicationManager, IChart2D chart2d, IComplexChart complexChart, IChart3D chart3d) { Icon = Resources.printToolStripButtonImage; Text = MenuStrings.printToolStripButton_Text; ToolTip = MenuStrings.printToolStripButton_Text; ShortcutKeyString = "Ctrl+P"; this._scriptingCodeEditor = scriptingCodeEditor; this._customFunctionsCodeEditor = customFunctionsCodeEditor; _sharedViewState = sharedViewState; _applicationManager = applicationManager; _charts = new Dictionary <CalculationsMode, IChart>() { { CalculationsMode.Real, chart2d }, { CalculationsMode.Complex, complexChart }, { CalculationsMode.Fxy, chart3d } }; }