Пример #1
0
 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;
 }
Пример #2
0
        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;
        }
Пример #4
0
 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;
 }
Пример #5
0
        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;
        }
Пример #6
0
 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;
 }
Пример #7
0
 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;
 }
Пример #8
0
 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;
 }
Пример #9
0
        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;
        }
Пример #10
0
        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;
        }
Пример #11
0
 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 }
     };
 }