Example #1
0
        private void formatCodeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ScriptingForm scriptingForm = (this.dockPanel.ActiveDocument as ScriptingForm);

            if (scriptingForm != null)
            {
                scriptingForm.FormatCode();
            }
        }
Example #2
0
        private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ScriptingForm scriptingForm = (this.dockPanel.ActiveDocument as ScriptingForm);

            if (scriptingForm != null)
            {
                scriptingForm.SyntaxBox.Paste();
                this.pasteToolStripMenuItem.Enabled = scriptingForm.SyntaxBox.CanPaste;
            }
        }
Example #3
0
        private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ScriptingForm scriptingForm = (this.dockPanel.ActiveDocument as ScriptingForm);

            if (scriptingForm != null)
            {
                scriptingForm.SyntaxBox.SelectAll();
                this.undoToolStripMenuItem.Enabled = scriptingForm.SyntaxBox.CanSelect;
            }
        }
Example #4
0
        private void CutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ScriptingForm scriptingForm = (this.dockPanel.ActiveDocument as ScriptingForm);

            if (scriptingForm != null)
            {
                scriptingForm.SyntaxBox.Cut();
                this.cutToolStripMenuItem.Enabled = scriptingForm.SyntaxBox.CanCopy && scriptingForm.SyntaxBox.Enabled;
            }
        }