public bool UnsubscribeDayTimeChangeListener(IDayTimeChangeListener listener) { if (dayTimeChangeListeners.Contains(listener)) { dayTimeChangeListeners.Remove(listener); return(true); } return(false); }
public bool SubscribeDayTimeChangeListener(IDayTimeChangeListener listener) { if (!dayTimeChangeListeners.Contains(listener)) { dayTimeChangeListeners.Add(listener); return(true); } return(false); }