示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 31 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Exit);

            #line default
            #line hidden
                return;

            case 2:

            #line 32 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 33 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_NewGame);

            #line default
            #line hidden
                return;

            case 4:
                this.PlayerXBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.PlayerOBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.gameboard = ((Slutproject.Gameboard)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gameboard = ((Slutproject.Gameboard)(target));
                return;

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

            #line 22 "..\..\..\Gameboard.xaml"
                this.b00.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.b10 = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\..\Gameboard.xaml"
                this.b10.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 24 "..\..\..\Gameboard.xaml"
                this.b20.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\..\Gameboard.xaml"
                this.b01.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\..\Gameboard.xaml"
                this.b11.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\..\Gameboard.xaml"
                this.b21.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\..\Gameboard.xaml"
                this.b02.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\..\Gameboard.xaml"
                this.b12.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.b22 = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\..\Gameboard.xaml"
                this.b22.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }