Ejemplo n.º 1
0
 public void OnEvent(SubjectEvent v)
 {
     // If observer interest in the event type, notify it.
     if(IsInterestedIn(v.GetEventType()))
     {
         m_Observer.OnEvent(v);
     }
 }
Ejemplo n.º 2
0
 public void OnEvent(SubjectEvent v)
 {
     if(v.GetEventType() == EventType.eUpdate)
     {
         m_ItemList.RemoveAll();
         m_Instance.GetSymbolState().GenerateGraphics(m_ItemList);
     }
     else
     {
         Debug.Assert(false, "Unkown event.");
     }
 }