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

            case 2:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.tabItem1 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.grid_Tab = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.progressBar1 = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 7:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.lbl_MinsRemaining = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.lbl_DevIterations = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.txt_Decks = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.txt_DevIter = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.txt_DeckIter = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.label9 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.radio_Durstenfeld = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.radio_Sullivan = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.radio_Other = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 20:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.tabitem_BasicStrategyHard = ((System.Windows.Controls.TabItem)(target));
                return;

            case 22:
                this.grid_BSHard = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.group_BSHardStats = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 24:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.lbl_Decks = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.lbl_TotGames = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.lbl_H17 = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.tabItem2 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 31:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click_1);

            #line default
            #line hidden
                return;

            case 32:
                this.myChartPlotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
                return;

            case 33:
                this.cursorGraph = ((Microsoft.Research.DynamicDataDisplay.Charts.Navigation.CursorCoordinateGraph)(target));
                return;

            case 34:
                this.intAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.IntegerAxis)(target));
                return;

            case 35:
                this.txt_DeckCount = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.label13 = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.check_H17 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 38:
                this.txt_BankRoll = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.label14 = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.txt_BetSpread = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.label15 = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.label16 = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.radio_None = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 44:
                this.radio_KO = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 45:
                this.txt_Penetration = ((System.Windows.Controls.TextBox)(target));
                return;

            case 46:
                this.label17 = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.check_DAS = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 48:
                this.txt_HoursOfPlay = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.label18 = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.txt_MinBet = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.label19 = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.txt_MaxBet = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:
                this.label20 = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.txt_NumPlayers = ((System.Windows.Controls.TextBox)(target));
                return;

            case 55:
                this.label21 = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.check_RSA = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 57:
                this.check_Surrender = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 58:
                this.txt_TablePosition = ((System.Windows.Controls.TextBox)(target));
                return;

            case 59:
                this.label22 = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.check_BetRamp = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 61:
                this.tabItem3 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 62:
                this.txt_player1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 63:
                this.txt_player2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 64:
                this.txt_dealerUp = ((System.Windows.Controls.TextBox)(target));
                return;

            case 65:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 66:
                this.label11 = ((System.Windows.Controls.Label)(target));
                return;

            case 67:
                this.label12 = ((System.Windows.Controls.Label)(target));
                return;

            case 68:
                this.lbl_first = ((System.Windows.Controls.Label)(target));
                return;

            case 69:
                this.lbl_second = ((System.Windows.Controls.Label)(target));
                return;

            case 70:
                this.lbl_third = ((System.Windows.Controls.Label)(target));
                return;

            case 71:
                this.lbl_fourth = ((System.Windows.Controls.Label)(target));
                return;

            case 72:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.btnClosed = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\..\..\MyUserControl\TrainRecordDialog.xaml"
     this.btnClosed.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.btnClosed_PreviewMouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
     
     #line 27 "..\..\..\..\MyUserControl\TrainRecordDialog.xaml"
     this.plotter.Loaded += new System.Windows.RoutedEventHandler(this.plotter_Loaded);
     
     #line default
     #line hidden
     return;
     case 3:
     this.axis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.HorizontalIntegerAxis)(target));
     return;
     case 4:
     this.innerPlotter = ((Microsoft.Research.DynamicDataDisplay.InjectedPlotter)(target));
     return;
     case 5:
     this.plotter2 = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
     return;
     case 6:
     this.xAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.IntegerAxis)(target));
     return;
     case 7:
     this.barChart = ((Microsoft.Research.DynamicDataDisplay.Charts.ClusteredBarChart)(target));
     return;
     }
     this._contentLoaded = true;
 }