void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.windowSelectMethod = ((kursOptimiz.Window2)(target)); #line 8 "..\..\Window2.xaml" this.windowSelectMethod.Closed += new System.EventHandler(this.windowSelectMethod_Closed); #line default #line hidden return; case 2: this.selectMetodcomboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 3: this.label = ((System.Windows.Controls.Label)(target)); return; case 4: this.selectMethod = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\Window2.xaml" this.selectMethod.Click += new System.Windows.RoutedEventHandler(this.selectMethod_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void MethodList_Click(object sender, RoutedEventArgs e) { w2 = new Window2(ref selectMethodlabel); w2.Show(); }