Beispiel #1
0
        void Load(FileToLoad f)
        {
            if (f.Info.Type == FileConstants.FILETYPE_FILE && string.IsNullOrEmpty(f.Info.Name))
            {
                return;
            }
            var file = fileManager.TryGetOrCreate(f.Info, f.IsAutoLoaded);

            if (file != null && !hash.Contains(file))
            {
                loadedFiles.Add(file);
                hash.Add(file);
            }
        }
Beispiel #2
0
 void Load(FileToLoad f)
 {
     if (f.Info.Type == FileConstants.FILETYPE_FILE && string.IsNullOrEmpty(f.Info.Name))
         return;
     var file = fileManager.TryGetOrCreate(f.Info, f.IsAutoLoaded);
     if (file != null && !hash.Contains(file)) {
         loadedFiles.Add(file);
         hash.Add(file);
     }
 }