private void SaveAllNotes()
 {
     if (!System.IO.File.Exists(ContentFilePath))
     {
         System.IO.File.CreateText(ContentFilePath);
     }
     XmlFileHelper.SaveDataToFile(_allNotes, ContentFilePath);
 }
Exemple #2
0
 public bool Save(T obj)
 {
     try
     {
         XmlFileHelper.SaveDataToFile(obj, FullPath);
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }