public void SendMessage(string message, AbstractColleague sender) { for (int i = 0; i < _participants.Count; i++) { if(sender != _participants[i]) _participants[i].Receive(message); } }
public void SendMessage(string message, AbstractColleague sender) { for (int i = 0; i < _participants.Count; i++) { if (sender != _participants[i]) { _participants[i].Receive(message); } } }
public void AddParticipant(AbstractColleague participant) { _participants.Add(participant); }