StonehearthEditor.FileData.GetLinkedFileData C# (CSharp) Method

GetLinkedFileData() protected method

protected GetLinkedFileData ( string path ) : FileData
path string
return FileData
        protected FileData GetLinkedFileData(string path)
        {
            foreach (FileData data in OpenedFiles)
            {
                if (data.Path == path)
                {
                    return data;
                }
            }

            foreach (FileData data in RelatedFiles)
            {
                if (data.Path == path)
                {
                    return data;
                }
            }

            return null;
        }