void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.sqlWin = ((DbWPF.SQLQuery)(target)); return; case 2: this.lstData = ((System.Windows.Controls.ListView)(target)); return; case 3: this.txtWin2 = ((System.Windows.Controls.TextBox)(target)); return; case 4: #line 25 "..\..\SQLQuery.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void btnQuery_Click(object sender, RoutedEventArgs e) { sqlWin = new SQLQuery(); sqlWin.ShowDialog(); }