public ProcessStandardStreamEditor(ProcessStandardStreamFile file)
            : base(file)
        {
            this.DockAreas |= DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop | DockAreas.Float;

            Editor      = new UI.RubyScintilla();
            Editor.Dock = DockStyle.Fill;
            this.Controls.Add(Editor);

            Editor.UndoRedo.IsUndoEnabled = false;
            Editor.Text = file.Buffer;
            InputStart  = Editor.TextLength;

            Editor.KeyPress  += new KeyPressEventHandler(Editor_KeyPress);
            Editor.KeyDown   += new KeyEventHandler(Editor_KeyDown);
            Editor.MouseDown += new MouseEventHandler(Editor_MouseDown);
            Editor.MouseUp   += new MouseEventHandler(Editor_MouseUp);
            this.FormClosing += new FormClosingEventHandler(ProcessStandardStreamEditor_FormClosing);

            (Editor.ContextMenuStrip as EditContextMenuStrip).ResetHandler(this);
        }
        public ProcessStandardStreamEditor(ProcessStandardStreamFile file)
            : base(file)
        {
            this.DockAreas |= DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop | DockAreas.Float;

            Editor = new UI.RubyScintilla();
            Editor.Dock = DockStyle.Fill;
            this.Controls.Add(Editor);

            Editor.UndoRedo.IsUndoEnabled = false;
            Editor.Text = file.Buffer;
            InputStart = Editor.TextLength;

            Editor.KeyPress += new KeyPressEventHandler(Editor_KeyPress);
            Editor.KeyDown += new KeyEventHandler(Editor_KeyDown);
            Editor.MouseDown += new MouseEventHandler(Editor_MouseDown);
            Editor.MouseUp += new MouseEventHandler(Editor_MouseUp);
            this.FormClosing += new FormClosingEventHandler(ProcessStandardStreamEditor_FormClosing);

            (Editor.ContextMenuStrip as EditContextMenuStrip).ResetHandler(this);
        }