Ejemplo n.º 1
0
 public TrafficLight(Battery battery)
 {
     ChangeBattery(battery);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Change actual battery and set default fields.
 /// </summary>
 /// <param name="battery"></param>
 public void ChangeBattery(Battery battery)
 {
     _battery = battery;
     SetDefault();
 }