VixenModules.App.Curves.Curve.UpdateLibraryReference C# (CSharp) 메소드

UpdateLibraryReference() 공개 메소드

Tries to update the library referenced object.
public UpdateLibraryReference ( ) : bool
리턴 bool
        public bool UpdateLibraryReference()
        {
            LibraryReferencedCurve = null;

            // if we have a name, try and find it in the library. Otherwise, remove the reference.
            if (IsLibraryReference) {
                if (Library != null) {
                    if (Library.Contains(LibraryReferenceName)) {
                        LibraryReferencedCurve = Library.GetCurve(LibraryReferenceName);
                        _points = new PointPairList(LibraryReferencedCurve.Points);
                        return true;
                    }
                    else {
                        LibraryReferenceName = string.Empty;
                    }
                }
            }

            return false;
        }