Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Mediator
                m = new Mediator();

            DataProviderColleague
                c1 = new DataProviderColleague(m);

            DataConsumerColleague
                c2 = new DataConsumerColleague();

            m.IntroduceColleagues(c1, c2);

            c1.ChangeData();
        }
Ejemplo n.º 2
0
 public void IntroduceColleagues(DataProviderColleague c1, DataConsumerColleague c2)
 {
     dataProvider = c1;
     dataConsumer = c2;
 }