Exemplo n.º 1
0
 /// <summary>
 /// Updates expense datastore dataset and stores its information to xml file.
 /// </summary>
 /// <param name="ds">The ds.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
 public bool UpdateDataStore(DataStore ds)
 {
     if (ds.HasChanges())
     {
         if (!System.IO.Directory.Exists(DataDirectory))
         {
             System.IO.Directory.CreateDirectory(DataDirectory);
         }
         ds.WriteXml(this.DataFilePath);
         ds.AcceptChanges();
         return true;
     }
     return false;
 }