Assignment3.TrafficLight.TrafficLight C# (CSharp) Méthode

TrafficLight() public méthode

public TrafficLight ( ) : System
Résultat System
    public TrafficLight()
    {
      color = Color.Green;
      toNextLight = new Timer(new FromGreenToYellow(this), 6.0f);
    }
    class FromGreenToYellow : Event