Exemplo n.º 1
0
 public static void DeleteFile(PBO pbo)
 {
     Log.Info(pbo.fileName);
     if (File.Exists(pbo.filePath + pbo.fileName))
     {
         File.Delete(pbo.filePath + pbo.fileName);
     }
 }
Exemplo n.º 2
0
 public PBOList DeleteFromArray(PBOList list, PBO pbo)
 {
     foreach (PBO p in list)
     {
         if ((p.fileHash == pbo.fileHash) && (p.fileName == pbo.fileName))
         {
             list.Remove(p);
             return(list);
         }
         ;
     }
     return(list);
 }