Example #1
0
        public static ImageLoader Register(string key, ImageLoaderConfiguration config)
        {
            var temp = new ImageLoader().Init(config);

            _libs[key] = temp;
            return(temp);
        }
 public ImageLoader Init(ImageLoaderConfiguration config) {
     this.config = config;
     this.queue = new List<ImageLoaderQueueItem>();
     return this;
 }
 /// <summary>
 /// 注意一个实例
 /// </summary>
 /// <param name="key">关键字</param>
 /// <param name="config">配置</param>
 /// <returns></returns>
 public static ImageLoader Register(string key, ImageLoaderConfiguration config) {
     return ImageLoaders.Register(key, config);
 }
Example #4
0
 public ImageLoader Init(ImageLoaderConfiguration config)
 {
     this.config = config;
     this.queue  = new List <ImageLoaderQueueItem>();
     return(this);
 }
Example #5
0
 /// <summary>
 /// 注意一个实例
 /// </summary>
 /// <param name="key">关键字</param>
 /// <param name="config">配置</param>
 /// <returns></returns>
 public static ImageLoader Register(string key, ImageLoaderConfiguration config)
 {
     return(ImageLoaders.Register(key, config));
 }
 public static ImageLoader Register(string key, ImageLoaderConfiguration config) {
     var temp = new ImageLoader().Init(config);
     _libs[key] = temp;
     return temp;
 }