/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void InitializeLogTab(object sender, EventArgs e) { if (_isNodeSite && _host.WebSite != null && !String.IsNullOrEmpty(_host.WebSite.Path) && !_editorTaskPanel.TaskTabExists(_outputTaskPanelId)) { _mainScriptPath = this.GetMainFileName(); _outputWindow = new OutputWindow(); _outputWindow.Initialize(Path.Combine(_host.WebSite.Path, "iisnode"), _siteFileWatcher, DefaultTheme); _editorTaskPanel.AddTaskTab(_outputTaskPanelId, new TaskTabItemDescriptor(null, "Output", _outputWindow, Brushes.DarkOliveGreen)); } else { if (_editorTaskPanel.TaskTabExists(_outputTaskPanelId)) { _editorTaskPanel.RemoveTaskTab(_outputTaskPanelId); } } }