internal static Task Load() => Task.Run(async() => { /// TODO Maybe make this start at at folder index /// and get it work with a real sorting method? for (int i = 0; i < ChangeImage.Navigation.Pics.Count; i++) { var pic = Thumbnails.GetBitmapSourceThumb(ChangeImage.Navigation.Pics[i]); if (pic == null) { pic = ImageDecoder.ImageErrorMessage(); } else if (!pic.IsFrozen) { pic.Freeze(); } await Add(pic, i).ConfigureAwait(false); } });