public void DeRegister(OnItemSelectedEventListener passedEvent) { if (eventListeners.Contains(passedEvent)) { eventListeners.Remove(passedEvent); } }
public void Register(OnItemSelectedEventListener passedEvent) { if (!eventListeners.Contains(passedEvent)) { eventListeners.Add(passedEvent); if (selectedItem != null) { Raise(selectedItem); } } }