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

            case 2:
                this.field = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 4:
                this.informationGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 6:
                this.restartButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((TestApplikation.MainWindow)(target));
     return;
     case 2:
     this.field = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.buttonGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.informationGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.playerBox = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.restartButton = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }