title: Shoot balls at mouse location in c# GDI
body: <p>Hello I am trying to shoot balls to mouse location by clicking.
  I really do not know if mistake is in form or in class game or if I am using wrong wrong event. Right now when I click nothing happens.</p>
  
  <pre><code> public class Game
   {
       public List&lt;Ball&gt; Balls { get; set; } = new List&lt;Ball&gt;();
       public List&lt;Base&gt; Base { get; set; } = new List&lt;Base&gt;();
  
  
  
  
       public void Draw(Graphics g)
       {
           foreach (Ball item in this.Balls)
           {
               item.Draw(g);
           }
  
  
  
  
       public void Next()
       {
           foreach (Ball item in this.Balls)
           {
               item.Move();
           }
       }  
  </code></pre>
  
  <p>I think there is mistake in this part but I dont know what  I am doing wrong</p>
  
  <pre><code> public void Click(int x, int y)
       {
           foreach(Ball item in this.Balls)
           {
               Ball b = new Ball(this)
               {
                   X = x,
                   Y = y,
                   Vx = x / 10,
                   Vy = y / 10
  
               };
  
  
               this.Balls.Add(b);
           }
  
       }
   }
  
  
  
   public partial class Form1 : Form
   {
       private Game game;
  
  
       private void PictureBox1_Paint(object sender, PaintEventArgs e)
       {
           this.game.Draw(e.Graphics);
       }
  
       private void Timer1_Tick(object sender, EventArgs e)
       {
           this.game.Next();
           this.pictureBox1.Refresh();
       }
  
       private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
       {
           this.game.Click(e.X, e.Y);
      }
   }
  </code></pre>