GetReferencedFileSave() public static method

public static GetReferencedFileSave ( IFileReferencer instance, string name ) : ReferencedFileSave
instance IFileReferencer
name string
return ReferencedFileSave
Beispiel #1
0
        public static ReferencedFileSave GetReferencedFileSaveRecursively(this IElement instance, string fileName)
        {
            ReferencedFileSave rfs = FileReferencerHelper.GetReferencedFileSave(instance, fileName);

            if (rfs == null && !string.IsNullOrEmpty(instance.BaseObject))
            {
                EntitySave baseEntitySave = GlueState.CurrentGlueProject.GetEntitySave(instance.BaseObject);
                if (baseEntitySave != null)
                {
                    rfs = baseEntitySave.GetReferencedFileSaveRecursively(fileName);
                }
            }

            return(rfs);
        }
Beispiel #2
0
        public static ReferencedFileSave GetReferencedFileSaveRecursively(this ScreenSave instance, string fileName)
        {
            ReferencedFileSave rfs = FileReferencerHelper.GetReferencedFileSave(instance, fileName);

            if (rfs == null && !string.IsNullOrEmpty(instance.BaseScreen))
            {
                IElement baseElement = ObjectFinder.Self.GetIElement(instance.BaseScreen);

                if (baseElement != null)
                {
                    rfs = baseElement.GetReferencedFileSaveRecursively(fileName);
                }
            }

            return(rfs);
        }
Beispiel #3
0
 public ReferencedFileSave GetReferencedFileSave(string fileName)
 {
     return(FileReferencerHelper.GetReferencedFileSave(this, fileName));
 }