Пример #1
0
        /// <summary>
        /// サムネイルの読み込み
        /// </summary>
        /// <param name="index"></param>
        void LoadThumbnailFork(int index)
        {
            PrefetchEnter();
            //Get current elem
            var elem = Core.CurrentOperation.Data.GetElement(index);

            Loader.LoadThumbnailByElem(elem);
            if (PrefetchThumbnailCompleted != null)
            {
                PrefetchThumbnailCompleted.Invoke(elem);
            }
            PrefetchExit();
        }
Пример #2
0
        /// <summary>
        /// 画像の読み込み
        /// </summary>
        void LoadImageFork(int index)
        {
            //Get current element
            PrefetchEnter();
            var elem = Core.CurrentOperation.Data.GetElement(index);

            System.Diagnostics.Debug.WriteLine("prefetch:" + index.ToString() + "=>" + elem.ImageSourcePath);
            Loader.LoadImageByElem(elem);
            if (PrefetchThumbnailCompleted != null)
            {
                PrefetchThumbnailCompleted.Invoke(elem);
            }
            if (PrefetchCompleted != null)
            {
                PrefetchCompleted.Invoke(elem);
            }
            PrefetchExit();
        }