Пример #1
0
 public Client()
 {
     this.invoker    = new Invoker();
     this.reciever   = new Reciever();
     this.onCommand  = new OnCommand(reciever);
     this.offCommand = new OffCommand(reciever);
     setCommands();
 }
Пример #2
0
        public Client()
        {
            this.invoker     = new Invoker();
            this.reciever    = new Reciever();
            this.onCommand   = new OnCommand(reciever);
            this.offCommand  = new OffCommand(reciever);
            this.SlowCommand = new SlowCommand(reciever);

            commandList.Add(this.onCommand);
            commandList.Add(this.offCommand);
            commandList.Add(this.SlowCommand);


            this.partyCommand = new PartyCommand(this.commandList);
            setCommands();
        }
Пример #3
0
 public MediumCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Пример #4
0
 public OffCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Пример #5
0
 public NullCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Пример #6
0
 public SlowCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Пример #7
0
 public HighCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }