public FireEditorTabItem AddDocument() { FireEditorTabItem tabItem = new FireEditorTabItem(); tabItem.Show(_DockContainer, DockState.Document); tabItem.Activate(); tabItem.FileSaved += new EventHandler(tabItem_FileSaved); tabItem.FormClosing+=new FormClosingEventHandler(tabItem_FormClosing); if (NewCodeEditor != null) NewCodeEditor(this, new NewCodeEditorEventArgs(ref tabItem)); tabItem.CodeEditor.TextChanged += new EventHandler(editorControl_TextChanged); return tabItem; }
internal NewCodeEditorEventArgs(ref FireEditorTabItem tabItem) { _FireEditorTabItem = tabItem; }
void CheckForToolbarState(FireEditorTabItem tabItem) { if (tabItem.CodeEditor.Document.Parser.Language.Name == "PHP") { phpToolBar.Enabled = true; } else { phpToolBar.Enabled = false; } }