static void Main(string[] args) { Pult pult = new Pult(); TV tv = new TV(); pult.SetCommand(new TVOnCommand(tv)); pult.PressButton(); pult.PressUndo(); EpsonCinema ec = new EpsonCinema(); pult.SetCommand(new EpsonCimemaOnCommand(ec)); pult.PressButton(); pult.PressUndo(); Console.Read(); }
public EpsonCimemaOnCommand(EpsonCinema epsonSet) { ec = epsonSet; }