private IEnumerable <Image> GetImages(string directory, string searchPattern) { return(_directory.GetFiles(directory, searchPattern, SearchOption.TopDirectoryOnly) .OrderBy(f => f) .Select(x => _imageLoader.Load(x))); }
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); }
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)); }