Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UC = ((Chess.pieceButton)(target));
                return;

            case 2:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\pieceButton.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden

            #line 53 "..\..\pieceButton.xaml"
                this.button.MouseEnter += new System.Windows.Input.MouseEventHandler(this.button_MouseEnter);

            #line default
            #line hidden

            #line 53 "..\..\pieceButton.xaml"
                this.button.MouseLeave += new System.Windows.Input.MouseEventHandler(this.button_MouseLeave);

            #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.masterGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.dock = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:
                this.currentPosition = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.gameGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.board = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.a8 = ((Chess.pieceButton)(target));
                return;

            case 10:
                this.a7 = ((Chess.pieceButton)(target));
                return;

            case 11:
                this.a6 = ((Chess.pieceButton)(target));
                return;

            case 12:
                this.a5 = ((Chess.pieceButton)(target));
                return;

            case 13:
                this.a4 = ((Chess.pieceButton)(target));
                return;

            case 14:
                this.a3 = ((Chess.pieceButton)(target));
                return;

            case 15:
                this.a2 = ((Chess.pieceButton)(target));
                return;

            case 16:
                this.a1 = ((Chess.pieceButton)(target));
                return;

            case 17:
                this.b8 = ((Chess.pieceButton)(target));
                return;

            case 18:
                this.c8 = ((Chess.pieceButton)(target));
                return;

            case 19:
                this.d8 = ((Chess.pieceButton)(target));
                return;

            case 20:
                this.e8 = ((Chess.pieceButton)(target));
                return;

            case 21:
                this.f8 = ((Chess.pieceButton)(target));
                return;

            case 22:
                this.g8 = ((Chess.pieceButton)(target));
                return;

            case 23:
                this.h8 = ((Chess.pieceButton)(target));
                return;

            case 24:
                this.b7 = ((Chess.pieceButton)(target));
                return;

            case 25:
                this.c7 = ((Chess.pieceButton)(target));
                return;

            case 26:
                this.d7 = ((Chess.pieceButton)(target));
                return;

            case 27:
                this.e7 = ((Chess.pieceButton)(target));
                return;

            case 28:
                this.f7 = ((Chess.pieceButton)(target));
                return;

            case 29:
                this.g7 = ((Chess.pieceButton)(target));
                return;

            case 30:
                this.h7 = ((Chess.pieceButton)(target));
                return;

            case 31:
                this.b6 = ((Chess.pieceButton)(target));
                return;

            case 32:
                this.c5 = ((Chess.pieceButton)(target));
                return;

            case 33:
                this.d4 = ((Chess.pieceButton)(target));
                return;

            case 34:
                this.e3 = ((Chess.pieceButton)(target));
                return;

            case 35:
                this.f2 = ((Chess.pieceButton)(target));
                return;

            case 36:
                this.g1 = ((Chess.pieceButton)(target));
                return;

            case 37:
                this.h2 = ((Chess.pieceButton)(target));
                return;

            case 38:
                this.g3 = ((Chess.pieceButton)(target));
                return;

            case 39:
                this.f4 = ((Chess.pieceButton)(target));
                return;

            case 40:
                this.e5 = ((Chess.pieceButton)(target));
                return;

            case 41:
                this.d6 = ((Chess.pieceButton)(target));
                return;

            case 42:
                this.f6 = ((Chess.pieceButton)(target));
                return;

            case 43:
                this.h6 = ((Chess.pieceButton)(target));
                return;

            case 44:
                this.g5 = ((Chess.pieceButton)(target));
                return;

            case 45:
                this.h4 = ((Chess.pieceButton)(target));
                return;

            case 46:
                this.b4 = ((Chess.pieceButton)(target));
                return;

            case 47:
                this.c3 = ((Chess.pieceButton)(target));
                return;

            case 48:
                this.b2 = ((Chess.pieceButton)(target));
                return;

            case 49:
                this.c1 = ((Chess.pieceButton)(target));
                return;

            case 50:
                this.d2 = ((Chess.pieceButton)(target));
                return;

            case 51:
                this.e1 = ((Chess.pieceButton)(target));
                return;

            case 52:
                this.c6 = ((Chess.pieceButton)(target));
                return;

            case 53:
                this.e6 = ((Chess.pieceButton)(target));
                return;

            case 54:
                this.g6 = ((Chess.pieceButton)(target));
                return;

            case 55:
                this.b5 = ((Chess.pieceButton)(target));
                return;

            case 56:
                this.d5 = ((Chess.pieceButton)(target));
                return;

            case 57:
                this.f5 = ((Chess.pieceButton)(target));
                return;

            case 58:
                this.h5 = ((Chess.pieceButton)(target));
                return;

            case 59:
                this.c4 = ((Chess.pieceButton)(target));
                return;

            case 60:
                this.e4 = ((Chess.pieceButton)(target));
                return;

            case 61:
                this.g4 = ((Chess.pieceButton)(target));
                return;

            case 62:
                this.b3 = ((Chess.pieceButton)(target));
                return;

            case 63:
                this.d3 = ((Chess.pieceButton)(target));
                return;

            case 64:
                this.f3 = ((Chess.pieceButton)(target));
                return;

            case 65:
                this.h3 = ((Chess.pieceButton)(target));
                return;

            case 66:
                this.c2 = ((Chess.pieceButton)(target));
                return;

            case 67:
                this.e2 = ((Chess.pieceButton)(target));
                return;

            case 68:
                this.g2 = ((Chess.pieceButton)(target));
                return;

            case 69:
                this.b1 = ((Chess.pieceButton)(target));
                return;

            case 70:
                this.d1 = ((Chess.pieceButton)(target));
                return;

            case 71:
                this.f1 = ((Chess.pieceButton)(target));
                return;

            case 72:
                this.h1 = ((Chess.pieceButton)(target));
                return;

            case 73:
                this.letters = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

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

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

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

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

            case 82:
                this.labelPlayerTurn = ((System.Windows.Controls.Label)(target));
                return;

            case 83:
                this.timer = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

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

            case 89:
                this.moveHistory = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 92:
                this.p1CaptureLabelPawn = ((System.Windows.Controls.Label)(target));
                return;

            case 93:
                this.p2CaptureLabelPawn = ((System.Windows.Controls.Label)(target));
                return;

            case 94:
                this.p1CaptureLabelKnight = ((System.Windows.Controls.Label)(target));
                return;

            case 95:
                this.p1CaptureLabelBishop = ((System.Windows.Controls.Label)(target));
                return;

            case 96:
                this.p1CaptureLabelRook = ((System.Windows.Controls.Label)(target));
                return;

            case 97:
                this.p1CaptureLabelQueen = ((System.Windows.Controls.Label)(target));
                return;

            case 98:
                this.p2CaptureLabelKnight = ((System.Windows.Controls.Label)(target));
                return;

            case 99:
                this.p2CaptureLabelBishop = ((System.Windows.Controls.Label)(target));
                return;

            case 100:
                this.p2CaptureLabelRook = ((System.Windows.Controls.Label)(target));
                return;

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