private void Show(object sender, EventArgs e) { foreach (Window item in System.Windows.Application.Current.Windows) { if (item.Title == "Setting") { item.Close(); } } setWindow fm2 = new setWindow(); fm2.ProBarVal += Fm2_ProBarVal; fm2.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.setWin = ((Task_Progress_Bar.setWindow)(target)); #line 8 "..\..\setWindow.xaml" this.setWin.Loaded += new System.Windows.RoutedEventHandler(this.SetWinLoaded); #line default #line hidden return; case 2: this.radioButton1 = ((System.Windows.Controls.RadioButton)(target)); #line 11 "..\..\setWindow.xaml" this.radioButton1.Checked += new System.Windows.RoutedEventHandler(this.RadioButton1_Checked); #line default #line hidden return; case 3: this.radioButton2 = ((System.Windows.Controls.RadioButton)(target)); #line 12 "..\..\setWindow.xaml" this.radioButton2.Checked += new System.Windows.RoutedEventHandler(this.RadioButton2_Checked); #line default #line hidden return; case 4: this.button = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\setWindow.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 5: this.button1 = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\setWindow.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.Button1_Click); #line default #line hidden return; case 6: this.textBox_ho1 = ((System.Windows.Controls.TextBox)(target)); #line 15 "..\..\setWindow.xaml" this.textBox_ho1.KeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_ho1_KeyDown); #line default #line hidden #line 15 "..\..\setWindow.xaml" this.textBox_ho1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_ho1_TextChanged); #line default #line hidden #line 15 "..\..\setWindow.xaml" this.textBox_ho1.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_ho1_GotFocus); #line default #line hidden return; case 7: this.label = ((System.Windows.Controls.Label)(target)); return; case 8: this.textBox_mi1 = ((System.Windows.Controls.TextBox)(target)); #line 17 "..\..\setWindow.xaml" this.textBox_mi1.KeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_mi1_KeyDown); #line default #line hidden #line 17 "..\..\setWindow.xaml" this.textBox_mi1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_mi1_TextChanged); #line default #line hidden #line 17 "..\..\setWindow.xaml" this.textBox_mi1.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_mi1_GotFocus); #line default #line hidden return; case 9: this.label_Copy = ((System.Windows.Controls.Label)(target)); return; case 10: this.textBox_se1 = ((System.Windows.Controls.TextBox)(target)); #line 19 "..\..\setWindow.xaml" this.textBox_se1.KeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_se1_KeyDown); #line default #line hidden #line 19 "..\..\setWindow.xaml" this.textBox_se1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_se1_TextChanged); #line default #line hidden #line 19 "..\..\setWindow.xaml" this.textBox_se1.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_se1_GotFocus); #line default #line hidden return; case 11: this.textBox_ho2 = ((System.Windows.Controls.TextBox)(target)); #line 21 "..\..\setWindow.xaml" this.textBox_ho2.KeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_ho2_KeyDown); #line default #line hidden #line 21 "..\..\setWindow.xaml" this.textBox_ho2.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_ho2_TextChanged); #line default #line hidden #line 21 "..\..\setWindow.xaml" this.textBox_ho2.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_ho2_GotFocus); #line default #line hidden return; case 12: this.label_Copy1 = ((System.Windows.Controls.Label)(target)); return; case 13: this.textBox_mi2 = ((System.Windows.Controls.TextBox)(target)); #line 23 "..\..\setWindow.xaml" this.textBox_mi2.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_mi2_TextChanged); #line default #line hidden #line 23 "..\..\setWindow.xaml" this.textBox_mi2.KeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_mi2_KeyDown); #line default #line hidden #line 23 "..\..\setWindow.xaml" this.textBox_mi2.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_mi2_GotFocus); #line default #line hidden return; case 14: this.label_Copy2 = ((System.Windows.Controls.Label)(target)); return; case 15: this.textBox_se2 = ((System.Windows.Controls.TextBox)(target)); #line 25 "..\..\setWindow.xaml" this.textBox_se2.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_se2_TextChanged); #line default #line hidden #line 25 "..\..\setWindow.xaml" this.textBox_se2.KeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_se2_KeyDown); #line default #line hidden #line 25 "..\..\setWindow.xaml" this.textBox_se2.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_se2_GotFocus); #line default #line hidden return; } this._contentLoaded = true; }