Esempio n. 1
0
        public static void Main()
        {
            Receiver receiver = new Receiver();
            Command command = new ConcreteCommand(receiver);
           
            Invoker aa = new Invoker();

            aa.SetCommand(command);
            aa.ExecuteCommand();           
        }
Esempio n. 2
0
 public ConcreteCommand(Receiver receiver)
     : base(receiver)
 { 
 }
Esempio n. 3
0
 public Command(Receiver receiver)
 {
     this.receiver = receiver;
 }