示例#1
0
文件: Light.cs 项目: HvaiY/DesignMode
 public void SetYellow()
 {
     this.State = LightState.Yellow;
 }
示例#2
0
文件: Light.cs 项目: HvaiY/DesignMode
 public void SetRed()
 {
     this.State = LightState.Red;
 }
示例#3
0
文件: Light.cs 项目: HvaiY/DesignMode
 public void SetGreen()
 {
     this.State = LightState.Green;
 }
示例#4
0
文件: Light.cs 项目: HvaiY/DesignMode
 public Light(LightState state)
 {
     this.State = state;
 }
示例#5
0
 public Light()
 {
     lightState = new LightOn();
 }
示例#6
0
 public AbstratcLight(LightState state)
 {
     this.State = state;
 }