Beispiel #1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            if (mapPathFinder.NextSpot())
            {
                pictureBox.Invalidate();
            }
            else
            {
                // invalidate one last time to draw the path
                pictureBox.Invalidate();

                timer.Enabled = false;

                SetControlState(false);
            }
        }