Example #1
0
 public void     FDelPic()
 {
     if (DelFile.MoveToRecycleBin(_currentPath))
     {
         string nextPath = "";
         int    imgCount = 0;
         if (_il.DeleteListLog(_currentPath, ref nextPath, ref imgCount))
         {
             FPicLoad(nextPath, true);
             _currentPath = nextPath;
         }
         else
         {
             fullBox.Image = null;
         }
     }
 }
Example #2
0
		public void DelPic()
		{
			if (DelFile.MoveToRecycleBin(_currentPath)){
				string nextPath = "";
				int imgCount = 0;
				if (_il.DeleteListLog(_currentPath, ref nextPath, ref imgCount)){
					Scrollbar1.Maximum = imgCount;
					AdjustBookmark(_currentScrollPos);
					PicLoadPos(nextPath, true);
					_currentPath = nextPath;
				}
				else {  // last img in selection deleted
					picBox.Image = null;
					SetStatusText(0, T._("No image loaded"));
				}
			}
		}