示例#1
0
 private void OnPixelDataLoaded(string seriesInstanceUid, string nextSeriesInstanceUid, string nextSopInstanceUid)
 {
     if (string.IsNullOrEmpty(nextSeriesInstanceUid) == false && string.IsNullOrEmpty(nextSopInstanceUid) == false)
     {
         SeriesPrefetch prefetcher = GetSeriesPrefetcher(seriesInstanceUid);
         prefetcher.OnImageLoaded(nextSeriesInstanceUid, nextSopInstanceUid);
     }
 }
示例#2
0
 private SeriesPrefetch GetSeriesPrefetcher(string seriesInstanceUid)
 {
     lock (_prefetchers)
     {
         if (_prefetchers.ContainsKey(seriesInstanceUid))
         {
             return(_prefetchers[seriesInstanceUid]);
         }
         else
         {
             SeriesPrefetch prefetcher = new SeriesPrefetch(_storage, seriesInstanceUid);
             _prefetchers.Add(seriesInstanceUid, prefetcher);
             return(prefetcher);
         }
     }
 }
示例#3
0
        private SeriesPrefetch GetSeriesPrefetcher(string seriesInstanceUid)
        {
            lock (_prefetchers)
            {
                if (_prefetchers.ContainsKey(seriesInstanceUid))
                    return _prefetchers[seriesInstanceUid];
                else
                {
                    SeriesPrefetch prefetcher = new SeriesPrefetch(_storage, seriesInstanceUid);
                    _prefetchers.Add(seriesInstanceUid, prefetcher);
                    return prefetcher;
                }
            }

        }