void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AddConfigWindow1 = ((WpfApp1.AddConfigWindow)(target)); return; case 2: this.btnAdd = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\AddConfig.xaml" this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.BtnAdd); #line default #line hidden return; case 3: this.tbInputHead = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.tbInputPerfix = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.tbOutput = ((System.Windows.Controls.TextBlock)(target)); return; case 6: #line 21 "..\..\AddConfig.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnRefresh); #line default #line hidden return; } this._contentLoaded = true; }
private void AddConfigBtn(object sender, RoutedEventArgs e) { AddConfigWindow w1 = new AddConfigWindow(); w1.Show(); }