/// <summary>Handles an <see cref="Edrych.App.ActiveQueryChanged"/> event</summary> private void ActiveQuery_Changed(object sender, EventArgs e) { this._activeQuery = sender as QueryView; }
/// <summary>Creates a new query tab</summary> /// <param name="IsOpen">Whether or not the query is from an existing saved query</param> private void CreateQueryTab(bool IsOpen) { QueryView qp = new QueryView(ref _browserViewModel); this.tabControl1.TabPages.Insert(0, qp); qp.CreateQueryView(IsOpen); this.tabControl1.SelectedIndex = 0; this.tabControl1.ResizeTabs(); }