public void AddEvent(EventDescriptor ev) { EventsCollection.Add(ev); while (EventsCollection.Count > 1000) { EventsCollection.RemoveAt(0); } }