Exemplo n.º 1
0
 void UserTank_ProjectileCreated(object sender, ProjectileEventArgs e)
 {
     if (e.Projectile.Brush is ProjectileBrush)
     {
         (e.Projectile.Brush as ProjectileBrush).Exploded += new EventHandler(TankView_Exploded);
     }
     this.drawingList.Add(e.Projectile.Brush);
     this.viewerCanvas.Children.Add(e.Projectile.Brush.GetBrush());
 }
Exemplo n.º 2
0
 protected virtual void userTank_ProjectileCreated(object sender, ProjectileEventArgs e)
 {
     e.Projectile.Exploded += new EventHandler<ProjectileExplodedEventArgs>(projectile_Exploded);
     this.projectileList.Add(e.Projectile);
 }