Пример #1
0
        public Stream OpenFile(string filename, bool forceReload)
        {
            if (forceReload && _files.ContainsKey(filename))
            {
                long length = _files[filename].Length;
                _files.RemoveByKey(filename);
                if (_freeFiles.Contains(filename))
                {
                    _freeFiles.Remove(filename);
                }
                _currentBufferSize -= length;
            }

            this.CacheFile(filename);

            return(_files[filename]);
        }
Пример #2
0
 public void RemoveByKey(string key)
 {
     m_Panels.RemoveByKey(key);
 }
Пример #3
0
 public void RemovePlugin(string key)
 {
     _Plugins.RemoveByKey(key);
     _PluginsLoaded.RemoveByKey(key);
 }