Beispiel #1
0
 private void AddLocation(string archiveLocation, string offloadLocation)
 {
     if (Archives.All(archive => Path.Combine(archive.Location, archive.Name) != archiveLocation))
     {
         Archives.Add(new Archive()
         {
             Name            = FilePath.GetFileName(archiveLocation),
             Location        = FilePath.GetDirectoryName(archiveLocation),
             OffloadLocation = offloadLocation
         });
     }
 }