public AnalogicToggles(IEletricalComponent component)
 {
     _commands[0] = new TurnOnHeatCommand(component);
     _commands[1] = new TurnOnRadioCommand(component);
 }
 public TurnOnRadioCommand(IEletricalComponent receiver)
 {
     _receiver = receiver;
 }
Beispiel #3
0
 public DigitalDashboard(IEletricalComponent component)
 {
     _commands[0] = new TurnOnHeatCommand(component);
     _commands[1] = new TurnOnRadioCommand(component);
 }