internal static CheckResult VerifyInheritanceGraph(INamedObjectContainer node)
{
if (mGlueProjectSave != null)
{
VerificationId++;
string resultString = "";
if (InheritanceVerificationHelper(ref node, ref resultString) == CheckResult.Failed)
{
MessageBox.Show("This assignment has created an inheritence cycle containing the following classes:\n\n" +
resultString +
"\nThe assignment will be undone.");
node.BaseObject = null;
return CheckResult.Failed;
}
}
return CheckResult.Passed;
}