Ejemplo n.º 1
0
 public Client()
 {
     this.invoker    = new Invoker();
     this.reciever   = new Reciever();
     this.onCommand  = new OnCommand(reciever);
     this.offCommand = new OffCommand(reciever);
     setCommands();
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 public MediumCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Ejemplo n.º 4
0
 public OffCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Ejemplo n.º 5
0
 public NullCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Ejemplo n.º 6
0
 public SlowCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Ejemplo n.º 7
0
 public HighCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }