private void DrawLight(Color green, Color orange, Color red) { PanelLight.Refresh(); g.FillEllipse(new SolidBrush(red), 15, 10, 120, 120); g.FillEllipse(new SolidBrush(orange), 15, 140, 120, 120); g.FillEllipse(new SolidBrush(green), 15, 270, 120, 120); }
public TrafficLightsSimulator() { InitializeComponent(); g = PanelLight.CreateGraphics(); ticks = 0; first = false; french = false; }