public override void TypePartEditorUpdated(ContentTypePartDefinitionBuilder builder) { var contentTypePartDefinition = builder.Build(); var newSettings = contentTypePartDefinition.Settings; if (!AreEqual(newSettings, _oldContentTypePartSettings)) { var eventData = new Dictionary <string, object> { { "ContentPartName", builder.Name }, { "ContentTypeName", builder.TypeName }, { "OldSettings", ToXml(_oldContentTypePartSettings) }, { "NewSettings", ToXml(newSettings) } }; RecordContentTypeAuditTrail(ContentTypeAuditTrailEventProvider.PartSettingsUpdated, eventData, builder.TypeName); } }