// Kayıt ol
 public override void Register(Colleague colleague)
 {
     // Bu kullanıcı daha önce kayıt edilmediyse kayıt altına al.
     if (!_user.ContainsValue(colleague))
     {
         // Kullanıcı ekle
         _user.Add(colleague.Name,colleague);
     }
     // Aracı nesnenisi atama
     colleague.concreteMediator = this;
 }
 public abstract void Send(string message, Colleague colleague);
Beispiel #3
0
 public abstract void Register(Colleague colleague);