protected void OnNewSqlTab(object sender, EventArgs e) { var con = ApplicationState.Instance.Connections [0]; SqlEditor sqlEditor = new SqlEditor (con); var tabLabel = new TabLabel ("Sql window - " + con.Name); tabbedArea.AppendPage (sqlEditor, tabLabel); tabLabel.CloseClicked += (closedSender, closedEventArgs) => { tabbedArea.RemovePage(tabbedArea.PageNum(sqlEditor)); }; tabbedArea.ShowAll (); }
protected void OnNewSqlTab(object sender, EventArgs e) { var con = ApplicationState.Instance.Connections [0]; SqlEditor sqlEditor = new SqlEditor(con); var tabLabel = new TabLabel("Sql window - " + con.Name); tabbedArea.AppendPage(sqlEditor, tabLabel); tabLabel.CloseClicked += (closedSender, closedEventArgs) => { tabbedArea.RemovePage(tabbedArea.PageNum(sqlEditor)); }; tabbedArea.ShowAll(); }