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); }
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); }
public Logger() { this.editor = new NekoKun.UI.Scintilla(); this.editor.IsReadOnly = true; }