void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((DoMagicWithImage.MainWindow)(target));
                return;

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

            case 3:
                this.image = ((System.Windows.Controls.Image)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.image.MouseMove += new System.Windows.Input.MouseEventHandler(this.image_MouseMove);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.image.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.image_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.fpsLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((DoMagicWithImage.MainWindow)(target));

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mainWindow_MouseDown);

            #line default
            #line hidden

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.MouseMove += new System.Windows.Input.MouseEventHandler(this.mainWindow_MouseMove);

            #line default
            #line hidden

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.mainWindow_MouseUp);

            #line default
            #line hidden

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.mainWindow_MouseWheel);

            #line default
            #line hidden

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.SizeChanged += new System.Windows.SizeChangedEventHandler(this.mainWindow_SizeChanged);

            #line default
            #line hidden

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.mainWindow_KeyDown);

            #line default
            #line hidden
                return;

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

            case 3:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.plusScaleButton = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\..\MainWindow.xaml"
                this.plusScaleButton.Click += new System.Windows.RoutedEventHandler(this.plusScaleButton_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\..\MainWindow.xaml"
                this.righterButton.Click += new System.Windows.RoutedEventHandler(this.righterButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.lefterButton = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\..\MainWindow.xaml"
                this.lefterButton.Click += new System.Windows.RoutedEventHandler(this.lefterButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.upperButton = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\..\MainWindow.xaml"
                this.upperButton.Click += new System.Windows.RoutedEventHandler(this.upperButton_Click);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\..\MainWindow.xaml"
                this.downnerButton.Click += new System.Windows.RoutedEventHandler(this.downnerButton_Click);

            #line default
            #line hidden
                return;

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

            #line 77 "..\..\..\MainWindow.xaml"
                this.minusScaleButton.Click += new System.Windows.RoutedEventHandler(this.minusScaleButton_Click);

            #line default
            #line hidden
                return;

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

            case 11:
                this.offsetXLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.offsetYLabel = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 15:
                this.calcModeSlider = ((System.Windows.Controls.Slider)(target));

            #line 127 "..\..\..\MainWindow.xaml"
                this.calcModeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.calcModeSlider_ValueChanged);

            #line default
            #line hidden
                return;

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

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

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

            case 19:
                this.label1_Copy2 = ((System.Windows.Controls.Label)(target));
                return;

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