コード例 #1
0
 public OptionsWindow(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((TicTacToe.MainWindow)(target));
                return;

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

            case 3:
                this.MiniBoard = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

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

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

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

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

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

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

            case 13:
                this.MiniBoard1 = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

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

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

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

            case 20:
                this.Button102 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 22:
                this.Button122 = ((System.Windows.Controls.Button)(target));
                return;

            case 23:
                this.MiniBoard2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.Button200 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 26:
                this.Button220 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 28:
                this.Button211 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 30:
                this.Button202 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 32:
                this.Button222 = ((System.Windows.Controls.Button)(target));
                return;

            case 33:
                this.MiniBoard3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.Button300 = ((System.Windows.Controls.Button)(target));
                return;

            case 35:
                this.Button310 = ((System.Windows.Controls.Button)(target));
                return;

            case 36:
                this.Button320 = ((System.Windows.Controls.Button)(target));
                return;

            case 37:
                this.Button301 = ((System.Windows.Controls.Button)(target));
                return;

            case 38:
                this.Button311 = ((System.Windows.Controls.Button)(target));
                return;

            case 39:
                this.Button321 = ((System.Windows.Controls.Button)(target));
                return;

            case 40:
                this.Button302 = ((System.Windows.Controls.Button)(target));
                return;

            case 41:
                this.Button312 = ((System.Windows.Controls.Button)(target));
                return;

            case 42:
                this.Button322 = ((System.Windows.Controls.Button)(target));
                return;

            case 43:
                this.MiniBoard4 = ((System.Windows.Controls.Grid)(target));
                return;

            case 44:
                this.Button400 = ((System.Windows.Controls.Button)(target));
                return;

            case 45:
                this.Button410 = ((System.Windows.Controls.Button)(target));
                return;

            case 46:
                this.Button420 = ((System.Windows.Controls.Button)(target));
                return;

            case 47:
                this.Button401 = ((System.Windows.Controls.Button)(target));
                return;

            case 48:
                this.Button411 = ((System.Windows.Controls.Button)(target));
                return;

            case 49:
                this.Button421 = ((System.Windows.Controls.Button)(target));
                return;

            case 50:
                this.Button402 = ((System.Windows.Controls.Button)(target));
                return;

            case 51:
                this.Button412 = ((System.Windows.Controls.Button)(target));
                return;

            case 52:
                this.Button422 = ((System.Windows.Controls.Button)(target));
                return;

            case 53:
                this.MiniBoard5 = ((System.Windows.Controls.Grid)(target));
                return;

            case 54:
                this.Button500 = ((System.Windows.Controls.Button)(target));
                return;

            case 55:
                this.Button510 = ((System.Windows.Controls.Button)(target));
                return;

            case 56:
                this.Button520 = ((System.Windows.Controls.Button)(target));
                return;

            case 57:
                this.Button501 = ((System.Windows.Controls.Button)(target));
                return;

            case 58:
                this.Button511 = ((System.Windows.Controls.Button)(target));
                return;

            case 59:
                this.Button521 = ((System.Windows.Controls.Button)(target));
                return;

            case 60:
                this.Button502 = ((System.Windows.Controls.Button)(target));
                return;

            case 61:
                this.Button512 = ((System.Windows.Controls.Button)(target));
                return;

            case 62:
                this.Button522 = ((System.Windows.Controls.Button)(target));
                return;

            case 63:
                this.MiniBoard6 = ((System.Windows.Controls.Grid)(target));
                return;

            case 64:
                this.Button600 = ((System.Windows.Controls.Button)(target));
                return;

            case 65:
                this.Button610 = ((System.Windows.Controls.Button)(target));
                return;

            case 66:
                this.Button620 = ((System.Windows.Controls.Button)(target));
                return;

            case 67:
                this.Button601 = ((System.Windows.Controls.Button)(target));
                return;

            case 68:
                this.Button611 = ((System.Windows.Controls.Button)(target));
                return;

            case 69:
                this.Button621 = ((System.Windows.Controls.Button)(target));
                return;

            case 70:
                this.Button602 = ((System.Windows.Controls.Button)(target));
                return;

            case 71:
                this.Button612 = ((System.Windows.Controls.Button)(target));
                return;

            case 72:
                this.Button622 = ((System.Windows.Controls.Button)(target));
                return;

            case 73:
                this.MiniBoard7 = ((System.Windows.Controls.Grid)(target));
                return;

            case 74:
                this.Button700 = ((System.Windows.Controls.Button)(target));
                return;

            case 75:
                this.Button710 = ((System.Windows.Controls.Button)(target));
                return;

            case 76:
                this.Button720 = ((System.Windows.Controls.Button)(target));
                return;

            case 77:
                this.Button701 = ((System.Windows.Controls.Button)(target));
                return;

            case 78:
                this.Button711 = ((System.Windows.Controls.Button)(target));
                return;

            case 79:
                this.Button721 = ((System.Windows.Controls.Button)(target));
                return;

            case 80:
                this.Button702 = ((System.Windows.Controls.Button)(target));
                return;

            case 81:
                this.Button712 = ((System.Windows.Controls.Button)(target));
                return;

            case 82:
                this.Button722 = ((System.Windows.Controls.Button)(target));
                return;

            case 83:
                this.MiniBoard8 = ((System.Windows.Controls.Grid)(target));
                return;

            case 84:
                this.Button800 = ((System.Windows.Controls.Button)(target));
                return;

            case 85:
                this.Button810 = ((System.Windows.Controls.Button)(target));
                return;

            case 86:
                this.Button820 = ((System.Windows.Controls.Button)(target));
                return;

            case 87:
                this.Button801 = ((System.Windows.Controls.Button)(target));
                return;

            case 88:
                this.Button811 = ((System.Windows.Controls.Button)(target));
                return;

            case 89:
                this.Button821 = ((System.Windows.Controls.Button)(target));
                return;

            case 90:
                this.Button802 = ((System.Windows.Controls.Button)(target));
                return;

            case 91:
                this.Button812 = ((System.Windows.Controls.Button)(target));
                return;

            case 92:
                this.Button822 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }