public void UnregisterReceiver(MsgReceiverInterface rev) { foreach (MsgReceiverInterface receiver in receiverList) { if (rev == receiver) { receiverList.Remove(receiver); return; } } }
public void RegisterReceiver(MsgReceiverInterface rev) { foreach (MsgReceiverInterface receiver in receiverList) { if (rev == receiver) { return; } } receiverList.Add(rev); }