Exemplo n.º 1
0
        public void Notify()
        {
            ColObserver pNode = this.pHead;

            while (pNode != null)
            {
                pNode.Notify();

                pNode = (ColObserver)pNode.pNext;
            }
        }
Exemplo n.º 2
0
        //subject notifies all the observers watching it
        //this will trigger their reaction via Execute() function
        public void Notify()
        {
            ColObserver pNode = this.pHead;

            while (pNode != null)
            {
                // Fire off listener
                pNode.Notify();

                pNode = (ColObserver)pNode.pMNext;
            }
        }