Exemple #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((BattleShip.GamePanel)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.content = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.healthbar = ((BattleShip.HealthBar)(target));
     return;
     case 5:
     this.playfield = ((BattleShip.Playfield)(target));
     return;
     case 6:
     this.playerName = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.content = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.healthbar = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.CarrierTxt = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.CarrierShip = ((BattleShip.Ship)(target));
     return;
     case 6:
     this.CarrierHP = ((BattleShip.HealthBar)(target));
     return;
     case 7:
     this.BattleshipTxt = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.BattleshipShip = ((BattleShip.Ship)(target));
     return;
     case 9:
     this.BattleshipHP = ((BattleShip.HealthBar)(target));
     return;
     case 10:
     this.DestroyerTxt = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.DestroyerShip = ((BattleShip.Ship)(target));
     return;
     case 12:
     this.DestroyerHP = ((BattleShip.HealthBar)(target));
     return;
     case 13:
     this.SubmarineTxt = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.SubmarineShip = ((BattleShip.Ship)(target));
     return;
     case 15:
     this.SubmarineHP = ((BattleShip.HealthBar)(target));
     return;
     case 16:
     this.PatrolboatTxt = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.PatrolboatShip = ((BattleShip.Ship)(target));
     return;
     case 18:
     this.PatrolboatHP = ((BattleShip.HealthBar)(target));
     return;
     case 19:
     this.playfield = ((BattleShip.Playfield)(target));
     return;
     case 20:
     this.playerName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 21:
     this.Disabled = ((System.Windows.Shapes.Rectangle)(target));
     return;
     }
     this._contentLoaded = true;
 }