void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.myWindow = ((Detector.MainWindow)(target));
     return;
     case 2:
     this.TitleLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.PromptLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.mergeCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 5:
     this.MyInkCanvas = ((System.Windows.Controls.InkCanvas)(target));
     
     #line 51 "..\..\..\MainWindow.xaml"
     this.MyInkCanvas.Gesture += new System.Windows.Controls.InkCanvasGestureEventHandler(this.InkCanvas_Gesture);
     
     #line default
     #line hidden
     
     #line 51 "..\..\..\MainWindow.xaml"
     this.MyInkCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.InkCanvas_MouseMove);
     
     #line default
     #line hidden
     
     #line 51 "..\..\..\MainWindow.xaml"
     this.MyInkCanvas.TouchMove += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.MyInkCanvas_TouchMove);
     
     #line default
     #line hidden
     return;
     case 6:
     this.MyLinearGradientBrush = ((System.Windows.Media.LinearGradientBrush)(target));
     return;
     case 7:
     this.MyColorOffset = ((System.Windows.Media.GradientStop)(target));
     return;
     case 8:
     this.YesButton = ((System.Windows.Controls.Button)(target));
     
     #line 75 "..\..\..\MainWindow.xaml"
     this.YesButton.Click += new System.Windows.RoutedEventHandler(this.YesButton_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.NoButton = ((System.Windows.Controls.Button)(target));
     
     #line 76 "..\..\..\MainWindow.xaml"
     this.NoButton.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NoButton_MouseEnter);
     
     #line default
     #line hidden
     return;
     case 10:
     this.popLink = ((System.Windows.Controls.Primitives.Popup)(target));
     
     #line 77 "..\..\..\MainWindow.xaml"
     this.popLink.MouseLeave += new System.Windows.Input.MouseEventHandler(this.popLink_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 11:
     this.AdaptWithTextBox = ((System.Windows.Controls.TextBox)(target));
     
     #line 83 "..\..\..\MainWindow.xaml"
     this.AdaptWithTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.AdaptWithTextBox_KeyDown);
     
     #line default
     #line hidden
     return;
     case 12:
     this.AdaptItButton = ((System.Windows.Controls.Button)(target));
     
     #line 85 "..\..\..\MainWindow.xaml"
     this.AdaptItButton.Click += new System.Windows.RoutedEventHandler(this.AdaptItButton_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.XResultLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.YResultLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.PResultLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.CResultLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.ErrorPercentLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.MyResultLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.TrainingExpander = ((System.Windows.Controls.Expander)(target));
     return;
     case 20:
     this.CounterLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.TargetTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.enteredTargets = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.SaveButton = ((System.Windows.Controls.Button)(target));
     
     #line 121 "..\..\..\MainWindow.xaml"
     this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.SaveClearButton = ((System.Windows.Controls.Button)(target));
     
     #line 122 "..\..\..\MainWindow.xaml"
     this.SaveClearButton.Click += new System.Windows.RoutedEventHandler(this.SaveClearButton_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.NetExpander = ((System.Windows.Controls.Expander)(target));
     return;
     case 26:
     this.TrainButton = ((System.Windows.Controls.Button)(target));
     
     #line 129 "..\..\..\MainWindow.xaml"
     this.TrainButton.Click += new System.Windows.RoutedEventHandler(this.TrainButton_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.SimulateButton = ((System.Windows.Controls.Button)(target));
     
     #line 130 "..\..\..\MainWindow.xaml"
     this.SimulateButton.Click += new System.Windows.RoutedEventHandler(this.SimulateButton_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     this.TestExpander = ((System.Windows.Controls.Expander)(target));
     return;
     case 29:
     this.TestButton = ((System.Windows.Controls.Button)(target));
     
     #line 136 "..\..\..\MainWindow.xaml"
     this.TestButton.Click += new System.Windows.RoutedEventHandler(this.TestButton_Click);
     
     #line default
     #line hidden
     return;
     case 30:
     this.ModeLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.DeveloperName = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Detector.MainWindow)(target));
                return;

            case 2:
                this.TitleLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.PromptLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.mergeCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.MyInkCanvas = ((System.Windows.Controls.InkCanvas)(target));

            #line 51 "..\..\..\MainWindow.xaml"
                this.MyInkCanvas.Gesture += new System.Windows.Controls.InkCanvasGestureEventHandler(this.InkCanvas_Gesture);

            #line default
            #line hidden

            #line 51 "..\..\..\MainWindow.xaml"
                this.MyInkCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.InkCanvas_MouseMove);

            #line default
            #line hidden

            #line 51 "..\..\..\MainWindow.xaml"
                this.MyInkCanvas.TouchMove += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.MyInkCanvas_TouchMove);

            #line default
            #line hidden
                return;

            case 6:
                this.MyLinearGradientBrush = ((System.Windows.Media.LinearGradientBrush)(target));
                return;

            case 7:
                this.MyColorOffset = ((System.Windows.Media.GradientStop)(target));
                return;

            case 8:
                this.YesButton = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\..\MainWindow.xaml"
                this.YesButton.Click += new System.Windows.RoutedEventHandler(this.YesButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.NoButton = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\..\MainWindow.xaml"
                this.NoButton.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NoButton_MouseEnter);

            #line default
            #line hidden
                return;

            case 10:
                this.popLink = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.popLink.MouseLeave += new System.Windows.Input.MouseEventHandler(this.popLink_MouseLeave);

            #line default
            #line hidden
                return;

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

            #line 83 "..\..\..\MainWindow.xaml"
                this.AdaptWithTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.AdaptWithTextBox_KeyDown);

            #line default
            #line hidden
                return;

            case 12:
                this.AdaptItButton = ((System.Windows.Controls.Button)(target));

            #line 85 "..\..\..\MainWindow.xaml"
                this.AdaptItButton.Click += new System.Windows.RoutedEventHandler(this.AdaptItButton_Click);

            #line default
            #line hidden
                return;

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

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

            case 15:
                this.PResultLabel = ((System.Windows.Controls.Label)(target));
                return;

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

            case 17:
                this.ErrorPercentLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.MyResultLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.TrainingExpander = ((System.Windows.Controls.Expander)(target));
                return;

            case 20:
                this.CounterLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.TargetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.enteredTargets = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.SaveButton = ((System.Windows.Controls.Button)(target));

            #line 121 "..\..\..\MainWindow.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.SaveClearButton = ((System.Windows.Controls.Button)(target));

            #line 122 "..\..\..\MainWindow.xaml"
                this.SaveClearButton.Click += new System.Windows.RoutedEventHandler(this.SaveClearButton_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.NetExpander = ((System.Windows.Controls.Expander)(target));
                return;

            case 26:
                this.TrainButton = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\..\MainWindow.xaml"
                this.TrainButton.Click += new System.Windows.RoutedEventHandler(this.TrainButton_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.SimulateButton = ((System.Windows.Controls.Button)(target));

            #line 130 "..\..\..\MainWindow.xaml"
                this.SimulateButton.Click += new System.Windows.RoutedEventHandler(this.SimulateButton_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.TestExpander = ((System.Windows.Controls.Expander)(target));
                return;

            case 29:
                this.TestButton = ((System.Windows.Controls.Button)(target));

            #line 136 "..\..\..\MainWindow.xaml"
                this.TestButton.Click += new System.Windows.RoutedEventHandler(this.TestButton_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.ModeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.DeveloperName = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }