예제 #1
0
파일: Client.cs 프로젝트: rtalbot/CodeDojo
 public Client()
 {
     _receiver = new Receiver() { x = 10, y = 11 };
     _invoker = new Invoker(
         new AddCommand(_receiver),
         new SubtractCommand(_receiver));
 }
예제 #2
0
 protected CommandBase(Receiver receiver)
 {
     _receiver = receiver;
 }
예제 #3
0
 public SubtractCommand(Receiver r)
     : base(r)
 {
 }
예제 #4
0
 public AddCommand(Receiver r)
     : base(r)
 {
 }