void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.windowSelectTask = ((kursOptimiz.Window1)(target)); #line 8 "..\..\Window1.xaml" this.windowSelectTask.Initialized += new System.EventHandler(this.windowSelectTask_Initialized); #line default #line hidden #line 8 "..\..\Window1.xaml" this.windowSelectTask.Closed += new System.EventHandler(this.windowSelectTask_Closed); #line default #line hidden return; case 2: this.selectTaskcomboBox = ((System.Windows.Controls.ComboBox)(target)); #line 10 "..\..\Window1.xaml" this.selectTaskcomboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged); #line default #line hidden return; case 3: this.label = ((System.Windows.Controls.Label)(target)); return; case 4: this.selectTask = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\Window1.xaml" this.selectTask.Click += new System.Windows.RoutedEventHandler(this.selectTask_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void TaskList_Click(object sender, RoutedEventArgs e) { w = new Window1(IntiDataForTask); w.Show(); }