Exemple #1
0
        public override void Execute()
        {
            var ofd = new OpenFileDialog {
                Filter = GlobalConfig.tslFilesFIlter
            };

            //TODO: move this to mainView or something
            if (ofd.ShowDialog() != DialogResult.OK)
            {
                return;
            }


            switch ((int)SharedViewState.Instance.CurrentView)
            {
            case 0:

                //mainFormView.SendStringAsKey("^S");
                break;

            case 4:
                scriptingCodeEditor.NewDocument(ofd.FileName);
                break;

            case 5:
                customFunctionsCodeEditor.NewDocument(ofd.FileName);
                break;

            default:
                //mainFormView.SendStringAsKey("^S");
                break;
            }

            //mainFormView.SendStringAsKey("^S");
        }
Exemple #2
0
        public override void Execute()
        {
            if (!_openFileDialog.Show())
            {
                return;
            }


            switch ((int)_sharedViewState.CurrentView)
            {
            case 0:

                //mainFormView.SendStringAsKey("^S");
                break;

            case 4:
                scriptingCodeEditor.NewDocument(_openFileDialog.FileName);
                break;

            case 5:
                customFunctionsCodeEditor.NewDocument(_openFileDialog.FileName);
                break;

            default:
                //mainFormView.SendStringAsKey("^S");
                break;
            }

            //mainFormView.SendStringAsKey("^S");
        }
        public override void Execute()
        {
            switch ((int)_sharedViewState.CurrentView)
            {
            case 0:

                //mainFormView.SendStringAsKey("^S");
                break;

            case 4:
                scriptingCodeEditor.NewDocument();
                break;

            case 5:
                customFunctionsCodeEditor.NewDocument();
                break;

            default:
                //mainFormView.SendStringAsKey("^S");
                break;
            }

            //mainFormView.SendStringAsKey("^S");
        }