public virtual void RegisterObserver(EventObserver observer) { bool ret; observers.Add(observer); if (status == Status.On) { ret = true; } else { ret = false; } observer.SendNotification(ret, this); }
public virtual void RegisterObserver(EventObserver observer) { bool ret; observers.Add(observer); if (status == Status.On) { ret = true; } else { ret = false; } observer.SendNotification(ret, this); }