Esempio n. 1
0
 private IEnumerable <Image> GetImages(string directory, string searchPattern)
 {
     return(_directory.GetFiles(directory,
                                searchPattern,
                                SearchOption.TopDirectoryOnly)
            .OrderBy(f => f)
            .Select(x => _imageLoader.Load(x)));
 }
Esempio n. 2
0
        void Load(SafeUri uri)
        {
            timer = Log.DebugTimerStart();
            if (loader != null)
            {
                loader.Dispose();
            }

            loader = ImageLoader.Create(uri);
            loader.AreaPrepared += HandlePixbufPrepared;
            loader.AreaUpdated  += HandlePixbufAreaUpdated;
            loader.Completed    += HandleDone;
            loader.Load(uri);
        }
Esempio n. 3
0
        void Load(SafeUri uri)
        {
            timer = Log.DebugTimerStart ();
            if (loader != null)
                loader.Dispose ();

            loader = ImageLoader.Create (uri);
            loader.AreaPrepared += HandlePixbufPrepared;
            loader.AreaUpdated += HandlePixbufAreaUpdated;
            loader.Completed += HandleDone;
            loader.Load (uri);
        }
        async Task <int> ExecuteLoadItemsCommand(string p)
        {
            var r = Resources.Resources.ResourceManager.GetStream("Knee");

            return(await imageLoader.Load(r));
        }