private void DeleteReferencesForAttribute(string definition, string attribute)
{
foreach (DocSection docSection in this.m_project.Sections)
{
foreach (DocSchema docSchema in docSection.Schemas)
{
foreach (DocEntity docEntity in docSchema.Entities)
{
for (int iAttr = docEntity.Attributes.Count - 1; iAttr >= 0; iAttr--)
{
DocAttribute docAttr = docEntity.Attributes[iAttr];
if (docAttr.Inverse == attribute && docAttr.DefinedType == definition)
{
docAttr.Delete();
docEntity.Attributes.RemoveAt(iAttr);
}
}
}
}
}
this.UpdateTreeDeletion();
}