public static void Run() { TvRemote tv = new TvRemote(); ChannelChange channel = new ChannelChange(tv); Volume volumeControl = new Volume(tv); Invoker invok = new Invoker(); invok.StoreCommand(volumeControl); invok.StoreCommand(channel); invok.UpAllStoredCommand(); }
public Volume(TvRemote tv) { _tvRemote = tv; }
public ChannelChange(TvRemote tv) { _tvRemote = tv; }