FlatRedBall.Glue.ProjectManager.VerifyReferenceGraph C# (CSharp) Method

VerifyReferenceGraph() static private method

static private VerifyReferenceGraph ( IElement element ) : CheckResult
element IElement
return CheckResult
        internal static CheckResult VerifyReferenceGraph(IElement element)
        {

            if (mGlueProjectSave != null && element != null)
            {
                VerificationId++;
                string resultString = "";

                Stack<IElement> visitedEntities = new Stack<IElement>();


                if (ReferenceVerificationHelper(element, ref resultString, visitedEntities) == CheckResult.Failed)
                {
                    MessageBox.Show("This assignment has created a reference creation cycle of the following path:\n\n" +
                        resultString +
                        "\nThe assignment will be undone.");

                    return CheckResult.Failed;
                }

            }

            return CheckResult.Passed;
        }