Beispiel #1
0
        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;
        }
Beispiel #2
0
 internal NewCodeEditorEventArgs(ref FireEditorTabItem tabItem)
 {
     _FireEditorTabItem = tabItem;
 }
Beispiel #3
0
 void CheckForToolbarState(FireEditorTabItem tabItem)
 { 
     if (tabItem.CodeEditor.Document.Parser.Language.Name == "PHP")
     {
         phpToolBar.Enabled = true;
     }
     else
     {
         phpToolBar.Enabled = false;
     }
 }