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