static void OnOpenView() { if (te2 == null) { te2 = new TE2(); } te2.Show(Center.Form.DockerContainer, DockState.Document); }
private void TextEditor_VisibleChanged(object sender, EventArgs e) { TE2 editor = (TE2)sender; if (editor.Visible) { Center.ActiveDocument.value = string.IsNullOrEmpty(editor.FileName) ? editor.TabText : editor.FileName; } }