コード例 #1
0
 /// <summary>
 ///     Add a backup file if it doesn't exist
 /// </summary>
 /// <param name="backupFile"></param>
 public void AddBackUp(BackUpFile backupFile)
 {
     if (!ExistBackUp(backupFile))
     {
         Backups.Add(backupFile);
     }
 }
コード例 #2
0
 /// <summary>
 /// Check if a backup file was already added to the project
 /// </summary>
 /// <param name="backUpFile"></param>
 /// <returns></returns>
 private bool ExistBackUp(BackUpFile backUpFile)
 {
     return(Backups.Any(b => b.Url.Equals(backUpFile.Url)));
 }