예제 #1
0
        static void Main(string[] args)
        {
            Sample.ProjecAssistant mediator = new Sample.ProjecAssistant();

            Sample.FrontEndLeader frontEndLeader = new Sample.FrontEndLeader(mediator);
            Sample.BackEndLeader  backEndLeader  = new Sample.BackEndLeader(mediator);

            mediator.SetBackEndLeader(backEndLeader);
            mediator.SetFrontEndLeader(frontEndLeader);


            frontEndLeader.Process();

            backEndLeader.Process();


            Console.Read();
        }
 public void SetFrontEndLeader(FrontEndLeader frontEndLeader)
 {
     _frontEndLeader = frontEndLeader;
 }