Esempio n. 1
0
 public void SetYellow()
 {
     this.State = LightState.Yellow;
 }
Esempio n. 2
0
 public void SetRed()
 {
     this.State = LightState.Red;
 }
Esempio n. 3
0
 public void SetGreen()
 {
     this.State = LightState.Green;
 }
Esempio n. 4
0
 public Light(LightState state)
 {
     this.State = state;
 }
Esempio n. 5
0
 public Light()
 {
     lightState = new LightOn();
 }
Esempio n. 6
0
 public AbstratcLight(LightState state)
 {
     this.State = state;
 }