Rewrote Reference class

This commit is contained in:
2014-08-30 10:24:01 +03:00
parent a3fdc31caa
commit 520eed12a6
18 changed files with 478 additions and 85 deletions

View File

@ -152,11 +152,11 @@ namespace RainmeterStudio.Business
// Find a storage
var storage = FindStorage(document);
if (document.Reference == null)
if (document.Reference.StoragePath == null)
throw new ArgumentException("Reference cannot be empty");
// Save
storage.Write(document.Reference.Path, document);
storage.Write(document.Reference.StoragePath, document);
// Clear dirty flag
document.IsDirty = false;