void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grdMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:

            #line 19 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 22 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 23 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.TabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 10:
                this.lbLog = ((TelnetTester.Common.NewListBox)(target));
                return;

            case 11:
                this.menu2 = ((System.Windows.Controls.Menu)(target));
                return;

            case 12:

            #line 45 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.menu2_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Canvas1 = ((System.Windows.Controls.Canvas)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.Canvas1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas1_MouseDown);

            #line default
            #line hidden
                return;

            case 14:
                this.DataStreamControl1 = ((AutoCoder.Telnet.Controls.DataStreamControl)(target));
                return;

            case 15:
                this.butEdit = ((System.Windows.Controls.Button)(target));

            #line 106 "..\..\MainWindow.xaml"
                this.butEdit.Click += new System.Windows.RoutedEventHandler(this.butEdit_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.butTextFilePath = ((System.Windows.Controls.Button)(target));

            #line 108 "..\..\MainWindow.xaml"
                this.butTextFilePath.Click += new System.Windows.RoutedEventHandler(this.butTextFilePath_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.RichTextBox1 = ((System.Windows.Controls.RichTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winMain = ((tnClient.MainWindow)(target));
                return;

            case 2:
                this.grdMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 4:

            #line 27 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 28 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 30 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 31 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 34 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 35 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 37 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 64 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 73 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 75 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 17:
                this.cbFontSize = ((System.Windows.Controls.ComboBox)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.cbFontSize.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.cbFontSize_TextChanged));

            #line default
            #line hidden
                return;

            case 18:
                this.udFontSize = ((AutoCoder.Controls.NumericUpDown)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.udFontSize.ValueChanged += new System.Action <int>(this.udFontSize_ValueChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.TabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 20:
                this.lbLog = ((AutoCoder.Controls.EnhancedListBox)(target));
                return;

            case 21:
                this.Canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 22:
                this.tbStatusBarMessage = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.menu2 = ((System.Windows.Controls.Menu)(target));
                return;

            case 24:

            #line 125 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem2_Click);

            #line default
            #line hidden
                return;

            case 25:

            #line 126 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem2_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.DataStreamControl1 = ((AutoCoder.Telnet.Controls.DataStreamControl)(target));
                return;

            case 27:
                this.tvTraffic = ((System.Windows.Controls.TreeView)(target));
                return;
            }
            this._contentLoaded = true;
        }