void RemoveTimelineForEventType(EventType evtType) { EventTypeTimelineVM timeline = FindTimelineForEventType(evtType); // If the timeline is empty and it does not have an associated dashboard // button, get rid of it if (!timeline.Any() && !eventTypes.Any(evt => evt.Model == evtType)) { EventTypesTimeline.ViewModels.Remove(timeline); timeline.Dispose(); eventTypeToTimeline.Remove(evtType); } }