void timer_Tick(object sender, EventArgs e) { agent.DoStep(50); PaintPanel.Children.Clear(); PaintPanel.Children.Add(agent.GetAgentShape()); PaintPanel.InvalidateVisual(); }