Ejemplo n.º 1
0
 public Mediator()
 {
     getter  = new ConcreteCollegue1();
     printer = new ConcreteCollegue2();
     //we can use messages from one to another
     getter.NewMessage += s => printer.Print(s);
 }
Ejemplo n.º 2
0
 public GetLines(IGetLine getLine)
 {
     _getLine = getLine;
 }