private void InsertViewEvent(ILStubEvent ilStubEvent) { lock (m_viewEventList) { if (m_filterList.Match(ilStubEvent)) { m_viewEventList.Insert(0, ilStubEvent); } } }
/// <summary> /// Get the list of ILStubEvents from the event list, which satisfy the filter. /// </summary> public List <ILStubEvent> Search(ILStubEventFilterList listFilter) { List <ILStubEvent> eventList = new List <ILStubEvent>(); lock (m_eventList) { for (int i = 0; i < m_eventList.Count; i++) { ILStubEvent ilStubEvent = m_eventList[i]; if (listFilter.Match(ilStubEvent)) { eventList.Add(ilStubEvent); } } } return(eventList); }