コード例 #1
0
 public void Apply()
 {
     LightBulb.SetBrightness(Brightness);
     if (Brightness == 0)
     {
         LightBulb.SwitchOff();
     }
 }