Пример #1
0
 public void SetYellow()
 {
     this.State = LightState.Yellow;
 }
Пример #2
0
 public void SetRed()
 {
     this.State = LightState.Red;
 }
Пример #3
0
 public void SetGreen()
 {
     this.State = LightState.Green;
 }
Пример #4
0
 public Light(LightState state)
 {
     this.State = state;
 }
Пример #5
0
 public Light()
 {
     lightState = new LightOn();
 }
Пример #6
0
 public AbstratcLight(LightState state)
 {
     this.State = state;
 }