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