예제 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.HealthBar = ((DemoCollection.HealthBarUserControl)(target));
         return;
     }
     this._contentLoaded = true;
 }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.playerHealth = ((DemoCollection.HealthBarUserControl)(target));
                return;

            case 2:
                this.playerStamina = ((DemoCollection.HealthBarUserControl)(target));
                return;

            case 3:
                this.trackingUI = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.reticle = ((System.Windows.Shapes.Ellipse)(target));
                return;
            }
            this._contentLoaded = true;
        }