private void PictureBox1_MouseClick(object sender, MouseEventArgs e) { if (!isRunning) { grid.ClickUpdate(new Point(e.X, e.Y), bGraphics.Graphics); bGraphics.Render(); } }