Пример #1
0
 public void Save(IModelPickle saveItem)
 {
     try {
         if (File.Exists(_filePath)) {
             if (saveItem.Modified) {
                 File.WriteAllLines(_filePath, saveItem.Serialize());
             }
         }
     } //if running multiple instances of the application the file may already being read. Then HIDE exception.
     catch (IOException) {
     }
 }
Пример #2
0
 public void Save(IModelPickle saveItem)
 {
     try {
         if (File.Exists(_filePath))
         {
             if (saveItem.Modified)
             {
                 File.WriteAllLines(_filePath, saveItem.Serialize());
             }
         }
     } //if running multiple instances of the application the file may already being read. Then HIDE exception.
     catch (IOException) {
     }
 }