public void RemoveObjectFromBackupList(string path) { if (ObjectsForBackup.Contains(path)) { ObjectsForBackup.Remove(path); } }
public void AddObjectForBackupList(string path) { if (!File.Exists(path)) { throw new FileNotFoundException(); } if (!ObjectsForBackup.Contains(path)) { ObjectsForBackup.Add(path); } }