Example #1
0
 /// <summary>
 /// 读取中产生的事件
 /// </summary>
 /// <param name="arg1"></param>
 /// <param name="arg2"></param>
 private void LoadImagePath_ReadHanander(object arg1, Code.ImagePathEventArgs arg2)
 {
     foreach (FileInfo item in arg2.ImagePaths)
     {
         ImagePathQueue.Enqueue(item);//进入到队列
     }
 }
Example #2
0
        /// <summary>
        /// 图片完成事件
        /// </summary>
        /// <param name="arg1"></param>
        /// <param name="arg2"></param>
        private void LoadImagePath_ReadCompletedHanander(object arg1, Code.ImagePathEventArgs arg2)
        {
            FileInfo imageFile;

            if (arg2.ImagePaths.Any())
            {
                imageFile = arg2.ImagePaths.FirstOrDefault();
                StatusContent.ImageCount = arg2.ImagePaths.Count();
                ImageDisplay.ImagePath   = imageFile.FullName;
                ImageDisplay.Index       = 0;
                ImagePaths = arg2.ImagePaths.ToArray();

                StatusContent.HandCount = arg2.ImagePaths.Count();
                SetImageStatus(imageFile);
                //StatusContent.OwnerPath = ImagePaths[index].DirectoryName;
            }
        }