Exemple #1
0
        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 ();
        }
Exemple #2
0
        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();
        }