Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public TrafficLightsSimulator()
 {
     InitializeComponent();
     g      = PanelLight.CreateGraphics();
     ticks  = 0;
     first  = false;
     french = false;
 }