Esempio n. 1
0
        static void Main(string[] args)
        {
            ApplicationMediator mediator = new ApplicationMediator();

            ConcreteColleague desktop = new ConcreteColleague(mediator);
            MobileColleague   mobile  = new MobileColleague(mediator);

            mediator.addColleague(desktop);
            mediator.addColleague(mobile);

            desktop.send("Hello World");
            mobile.send("Hello");

            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            ApplicationMediator mediator = new ApplicationMediator();

            ConcreteColleague desktop = new ConcreteColleague(mediator);
            MobileColleague mobile = new MobileColleague(mediator);

            mediator.addColleague(desktop);
            mediator.addColleague(mobile);

            desktop.send("Hello World");
            mobile.send("Hello");

            Console.ReadKey();
        }
Esempio n. 3
0
 public MobileColleague(ApplicationMediator applicationMediator)
     : base(applicationMediator)
 {
 }
Esempio n. 4
0
 public ConcreteColleague(ApplicationMediator applicationMediator)
     : base(applicationMediator)
 {
 }
Esempio n. 5
0
 public MobileColleague(ApplicationMediator applicationMediator)
     : base(applicationMediator)
 {
 }
Esempio n. 6
0
 public ConcreteColleague(ApplicationMediator applicationMediator)
     : base(applicationMediator)
 {
 }