protected virtual void OnElementsAdded(ElementUpdateEventArgs e) { var handler = ElementsAdded; if (handler != null) { handler(e.GetUniqueIds()); } }
protected virtual void OnElementsDeleted(ElementUpdateEventArgs e) { var handler = ElementsDeleted; if (handler != null) { handler(e.RevitDocument, e.Elements); } var updateHandler = ElementsUpdated; if (updateHandler != null) { updateHandler(this, e); } }
protected virtual void OnElementsModified(ElementUpdateEventArgs e) { var handler = ElementsModified; if (handler != null) { handler(e.GetUniqueIds()); } var updateHandler = ElementsUpdated; if (updateHandler != null) { updateHandler(this, e); } }