Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainGameWindow = ((MemoryGameExample.MainWindow)(target));
                return;

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

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

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

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

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

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

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

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

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

            case 11:
                this.Button9 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 13:
                this.Button11 = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.Button12 = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.Button13 = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.Button14 = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.Button15 = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.Button16 = ((System.Windows.Controls.Button)(target));
                return;

            case 19:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainGameWindow = ((MemoryGameExample.MainWindow)(target));
                return;

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

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

            case 4:
                this.Button1_Image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 6:
                this.Button2_Image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 8:
                this.Button3_Image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 10:
                this.Button4_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.Button5 = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.Button5_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.Button6 = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.Button6_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.Button7 = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.Button7_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this.Button8 = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.Button8_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 19:
                this.Button9 = ((System.Windows.Controls.Button)(target));
                return;

            case 20:
                this.Button9_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 21:
                this.Button10 = ((System.Windows.Controls.Button)(target));
                return;

            case 22:
                this.Button10_Image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 24:
                this.Button11_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 25:
                this.Button12 = ((System.Windows.Controls.Button)(target));
                return;

            case 26:
                this.Button12_Image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 28:
                this.Button13_Image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 30:
                this.Button14_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 31:
                this.Button15 = ((System.Windows.Controls.Button)(target));
                return;

            case 32:
                this.Button15_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 33:
                this.Button16 = ((System.Windows.Controls.Button)(target));
                return;

            case 34:
                this.Button16_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 35:
                this.Time = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.Moves = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.MenuBar = ((System.Windows.Controls.Menu)(target));
                return;
            }
            this._contentLoaded = true;
        }