public void Notify() { Observer current = (Observer)this.poActiveHead; while (current != null) { current.Notify(); } }
// notify all observers public void Notify() { Observer current = this.poObserverHead; while (current != null) { current.Notify(); current = (Observer)current.pNext; } }