예제 #1
0
 public void RemoveObjectFromBackupList(string path)
 {
     if (ObjectsForBackup.Contains(path))
     {
         ObjectsForBackup.Remove(path);
     }
 }
예제 #2
0
 public void AddObjectForBackupList(string path)
 {
     if (!File.Exists(path))
     {
         throw new FileNotFoundException();
     }
     if (!ObjectsForBackup.Contains(path))
     {
         ObjectsForBackup.Add(path);
     }
 }