private void Button_Click_1(object sender, RoutedEventArgs e) { MainWindow win = new MainWindow(); win.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.win = ((DoPing.MainWindow)(target)); #line 8 "..\..\MainWindow.xaml" this.win.Closing += new System.ComponentModel.CancelEventHandler(this.win_Closing); #line default #line hidden return; case 2: this.txt1 = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.ping_btn = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\MainWindow.xaml" this.ping_btn.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 4: #line 42 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 5: this.reset_btn = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\MainWindow.xaml" this.reset_btn.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; case 6: this.ttl_chkbox = ((System.Windows.Controls.CheckBox)(target)); #line 56 "..\..\MainWindow.xaml" this.ttl_chkbox.Checked += new System.Windows.RoutedEventHandler(this.ttl_chkbox_Checked); #line default #line hidden #line 56 "..\..\MainWindow.xaml" this.ttl_chkbox.Unchecked += new System.Windows.RoutedEventHandler(this.ttl_chkbox_Unchecked); #line default #line hidden return; case 7: this.rtt_chkbox = ((System.Windows.Controls.CheckBox)(target)); #line 57 "..\..\MainWindow.xaml" this.rtt_chkbox.Checked += new System.Windows.RoutedEventHandler(this.rtt_chkbox_Checked); #line default #line hidden #line 57 "..\..\MainWindow.xaml" this.rtt_chkbox.Unchecked += new System.Windows.RoutedEventHandler(this.rtt_chkbox_Unchecked); #line default #line hidden return; case 8: this.len_chkbox = ((System.Windows.Controls.CheckBox)(target)); #line 58 "..\..\MainWindow.xaml" this.len_chkbox.Checked += new System.Windows.RoutedEventHandler(this.len_chkbox_Checked); #line default #line hidden #line 58 "..\..\MainWindow.xaml" this.len_chkbox.Unchecked += new System.Windows.RoutedEventHandler(this.len_chkbox_Unchecked); #line default #line hidden return; case 9: this.mtu_box = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.timeout_box = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.lst_time_out = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.notify_textblock = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.notify_box = ((System.Windows.Controls.TextBox)(target)); return; case 14: #line 100 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3); #line default #line hidden return; case 15: this.stop_alarm_btn = ((System.Windows.Controls.Button)(target)); #line 108 "..\..\MainWindow.xaml" this.stop_alarm_btn.Click += new System.Windows.RoutedEventHandler(this.stop_alarm_btn_Click); #line default #line hidden return; case 16: this.list1 = ((System.Windows.Controls.ListView)(target)); return; } this._contentLoaded = true; }