public AnalogicToggles(IEletricalComponent component)
 {
     _commands[0] = new TurnOnHeatCommand(component);
     _commands[1] = new TurnOnRadioCommand(component);
 }
示例#2
0
 public DigitalDashboard(IEletricalComponent component)
 {
     _commands[0] = new TurnOnHeatCommand(component);
     _commands[1] = new TurnOnRadioCommand(component);
 }