/// <summary> /// Standart Konstruktor, sollte nicht zur öffnung oder erstellung eines /// Dokuments verwendet werden /// </summary> public EditorTab(MainForm mf) { InitializeComponent(); this.Title = ""; editor = new EditorControl(); editor.Parent = panel1; editor.Visible = true; editor.Dock = DockStyle.Fill; editor.ActiveTextAreaControl.TextArea.KeyDown += new KeyEventHandler(TextArea_KeyDown); editor.ActiveTextAreaControl.TextArea.DoProcessDialogKey += new ICSharpCode.TextEditor.DialogKeyProcessor(TextArea_DoProcessDialogKey); editor.TextChanged += new EventHandler(editor_TextChanged); editor.BringToFront(); editor.Focus(); }