예제 #1
0
        private static ImageProvider GetProvider(ComicBook comic)
        {
            var provider = comic.CreateImageProvider();

            if (provider == null)
            {
                return(null);
            }
            if (provider.Status != ImageProviderStatus.Completed)
            {
                provider.Open(false);
            }
            return(provider);
        }
예제 #2
0
 private static ImageProvider GetProvider(ComicBook comic)
 {
     var provider = comic.CreateImageProvider();
     if (provider == null)
     {
         return null;
     }
     if (provider.Status != ImageProviderStatus.Completed)
     {
         provider.Open(false);
     }
     return provider;
 }