예제 #1
0
 public void DeRegister(OnItemSelectedEventListener passedEvent)
 {
     if (eventListeners.Contains(passedEvent))
     {
         eventListeners.Remove(passedEvent);
     }
 }
예제 #2
0
 public void Register(OnItemSelectedEventListener passedEvent)
 {
     if (!eventListeners.Contains(passedEvent))
     {
         eventListeners.Add(passedEvent);
         if (selectedItem != null)
         {
             Raise(selectedItem);
         }
     }
 }