/// <summary> /// Saves settings.xml, library.xml, and image cache.xml, and versions.xml to disk /// </summary> public static void Save() { SaveLibrary(); SaveSettings(); string pathToVersions = Path.Combine(SysFolder, "version.xml"); using (var fs = new FileStream(pathToVersions, FileMode.Create)) Util.Serialize(LastCheckedVersion, fs); ImageCache.Save(); }
public static void Save() { string lfile = System.IO.Path.Combine(SysFolder, "library.xml"); System.IO.Directory.CreateDirectory(System.IO.Path.GetDirectoryName(lfile)); using (var fs = new System.IO.FileStream(lfile, System.IO.FileMode.Create)) Util.Serialize(Library, fs); string sfile = System.IO.Path.Combine(SysFolder, "settings.xml"); using (var fs = new System.IO.FileStream(sfile, System.IO.FileMode.Create)) Util.Serialize(Settings, fs); ImageCache.Save(); }
/// <summary> /// Saves settings.xml, library.xml, and image cache.xml, and versions.xml to disk /// </summary> public static void Save() { string lfile = Path.Combine(SysFolder, "library.xml"); string sfile = Path.Combine(SysFolder, "settings.xml"); string pathToVersions = Path.Combine(SysFolder, "version.xml"); Directory.CreateDirectory(Path.GetDirectoryName(lfile)); using (var fs = new FileStream(lfile, FileMode.Create)) Util.Serialize(Library, fs); using (var fs = new FileStream(sfile, FileMode.Create)) Util.Serialize(Settings, fs); using (var fs = new FileStream(pathToVersions, FileMode.Create)) Util.Serialize(LastCheckedVersion, fs); ImageCache.Save(); }