示例#1
0
 public override void SendMessage(string message, Colleague c)
 {
     foreach (Colleague temp in colleagues)
     {
         if (temp != c)
         {
             temp.GetMessage(message);
         }
     }
 }
示例#2
0
 public override void Send(string message, Colleague colleague)
 {
     if (colleague == colleague1)
     {
         colleague2.Notify(message);
     }
     else
     {
         colleague1.Notify(message);
     }
 }
 public abstract void Send(string message, Colleague colleague);
示例#4
0
 public abstract void Send(string message, Colleague colleague);
示例#5
0
 public abstract void SendMessage(string message, Colleague c);
示例#6
0
 public void AddColleague(Colleague c)
 {
     colleagues.Add(c);
 }