示例#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);
         }
     }
 }