예제 #1
0
 public void Unsubscribe(EventTypes eventType, Listner listner)
 {
     listner.Subscriptions.Remove(eventType);
     _listners.Remove(listner);
     Console.WriteLine("Unsubscribed from " + eventType);
 }
예제 #2
0
 public void Subscribe(EventTypes eventType, Listner listner)
 {
     listner.Subscriptions.Add(eventType);
     _listners.Add(listner);
     Console.WriteLine("Subscribed to " + eventType);
 }