Example #1
0
        private void DeleteEvents(IElementContainer <ISubmodelElement> submodelElements)
        {
            var eventsToDelete = submodelElements.Where(s => s.ModelType == ModelType.Event || s.ModelType == ModelType.BasicEvent).ToList();

            foreach (var eventable in eventsToDelete)
            {
                submodelElements.Remove(eventable);
            }
        }