예제 #1
0
 public void UnregisterReceiver(MsgReceiverInterface rev)
 {
     foreach (MsgReceiverInterface receiver in receiverList)
     {
         if (rev == receiver)
         {
             receiverList.Remove(receiver);
             return;
         }
     }
 }
예제 #2
0
        public void RegisterReceiver(MsgReceiverInterface rev)
        {
            foreach (MsgReceiverInterface receiver in receiverList)
            {
                if (rev == receiver)
                {
                    return;
                }
            }

            receiverList.Add(rev);
        }