/// <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); } }
/// <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))); }