Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((TienDinh.MainWindow)(target));

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

            #line default
            #line hidden

            #line 6 "..\..\..\MainWindow.xaml"
                this.mainWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.imgBG = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 3:

            #line 20 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgControl_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgControl_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 5:

            #line 22 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgControl_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 6:
                this.imgView = ((System.Windows.Controls.TextBlock)(target));

            #line 36 "..\..\..\MainWindow.xaml"
                this.imgView.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgView_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.imgSetBG = ((System.Windows.Controls.TextBlock)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.imgSetBG.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgSetBG_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 8:
                this.imgRestore = ((System.Windows.Controls.TextBlock)(target));

            #line 38 "..\..\..\MainWindow.xaml"
                this.imgRestore.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgRestore_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 9:

            #line 68 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:

            #line 69 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 11:

            #line 70 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 12:

            #line 71 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 13:

            #line 72 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 14:

            #line 73 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 15:

            #line 76 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 16:

            #line 77 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWindow = ((TienDinh.MainWindow)(target));
     
     #line 6 "..\..\..\MainWindow.xaml"
     this.mainWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
     
     #line default
     #line hidden
     
     #line 6 "..\..\..\MainWindow.xaml"
     this.mainWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.imgBG = ((System.Windows.Media.ImageBrush)(target));
     return;
     case 3:
     
     #line 20 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgControl_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 21 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgControl_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 22 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgControl_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 6:
     this.imgView = ((System.Windows.Controls.TextBlock)(target));
     
     #line 36 "..\..\..\MainWindow.xaml"
     this.imgView.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgView_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 7:
     this.imgSetBG = ((System.Windows.Controls.TextBlock)(target));
     
     #line 37 "..\..\..\MainWindow.xaml"
     this.imgSetBG.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgSetBG_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 8:
     this.imgRestore = ((System.Windows.Controls.TextBlock)(target));
     
     #line 38 "..\..\..\MainWindow.xaml"
     this.imgRestore.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgRestore_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 68 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 69 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 70 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 71 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 72 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 73 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 76 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 77 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }