StonehearthEditor.ModuleDataManager.GetSelectedFileData C# (CSharp) Method

GetSelectedFileData() public method

public GetSelectedFileData ( string selected ) : FileData
selected string
return FileData
        public FileData GetSelectedFileData(string selected)
        {
            // FullPath is a property of treeviews that consists of the labels of all of the
            // tree nodes that must be navigated to reach the selected tree node
            string[] path = selected.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);

            if (path.Length <= 2)
            {
                return null;
            }

            Module module = mModules[path[0]];
            ModuleFile file = module.GetModuleFile(path[1], path[2]);
            if (file != null)
            {
                return file.GetFileData(path);
            }

            return null;
        }

Same methods

ModuleDataManager::GetSelectedFileData ( TreeNode selected ) : FileData