Exemple #1
0
        public ScriptEditor(ScriptFile item) : base(item)
        {
            editor      = new UI.RubyScintilla();
            editor.Dock = DockStyle.Fill;
            this.Controls.Add(editor);

            editor.Text = (this.File as ScriptFile).Code;
            editor.UndoRedo.EmptyUndoBuffer();
            editor.TextDeleted  += new EventHandler <ScintillaNET.TextModifiedEventArgs>(editor_TextDeleted);
            editor.TextInserted += new EventHandler <ScintillaNET.TextModifiedEventArgs>(editor_TextInserted);
            editor.Scrolling.HorizontalWidth = 1;

            this.FormClosing += new FormClosingEventHandler(ScriptEditor_FormClosing);
        }
Exemple #2
0
        public ScriptEditor(ScriptFile item)
            : base(item)
        {
            editor = new UI.RubyScintilla();
            editor.Dock = DockStyle.Fill;
            this.Controls.Add(editor);

            editor.Text = (this.File as ScriptFile).Code;
            editor.UndoRedo.EmptyUndoBuffer();
            editor.TextDeleted += new EventHandler<ScintillaNET.TextModifiedEventArgs>(editor_TextDeleted);
            editor.TextInserted += new EventHandler<ScintillaNET.TextModifiedEventArgs>(editor_TextInserted);
            editor.Scrolling.HorizontalWidth = 1;

            this.FormClosing += new FormClosingEventHandler(ScriptEditor_FormClosing);
        }
Exemple #3
0
 public Logger()
 {
     this.editor            = new NekoKun.UI.Scintilla();
     this.editor.IsReadOnly = true;
 }