示例#1
0
 public void OnEvent(SubjectEvent v)
 {
     // If observer interest in the event type, notify it.
     if(IsInterestedIn(v.GetEventType()))
     {
         m_Observer.OnEvent(v);
     }
 }
示例#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.");
     }
 }