示例#1
0
 public static void DeleteFileList()
 {
     foreach (string str in _fnamelist)
     {
         try
         {
             RecycleBin.DeleteFile(str);
         }
         catch
         {
         }
     }
     _fnamelist.Clear();
 }
示例#2
0
 public static void DeleteFile(string fpath)
 {
     RecycleBin.DeleteFile(fpath);
     _fnamelist.Remove(fpath);
 }