public frmCountries()
        {
            InitializeComponent();

            mediator.AddColleague(txt_Country);
            mediator.AddColleague(btn_Add);
            mediator.AddColleague(btn_Clear);
            mediator.AddColleague(lst_Countries);
        }
 protected AbstractColleague(IMediator <IColleague <Message>, Message> mediator, string name)
 {
     Mediator = mediator;
     Name     = name;
     Mediator.AddColleague(this);
 }
        protected Colleague(IMediator mediator)
        {
            _mediator = mediator;

            mediator.AddColleague(this);
        }
Beispiel #4
0
 public Colleague(string name, IMediator mediator)
 {
     Name     = name;
     Mediator = mediator;
     Mediator.AddColleague(this);
 }