예제 #1
0
 public override void Register(Participant participant)
 {
     if (!_participants.ContainsValue(participant))
     {
         _participants[participant.Name] = participant;
     }
     participant.Chatroom = this;
 }
예제 #2
0
 public abstract void Register(Participant participant);
예제 #3
0
 public void SignOn(Participant participant)
 {
     _groupParticipants.Add(participant);
 }
예제 #4
0
 public abstract void Register(Participant participant);
 public void SendMessage(Participant user, string message)
 {
     Console.WriteLine(user.name + ": " + message);
 }