// deserialize downloaded repo.xml and check if it has updates private void CheckStoreForUpdates(string tmpStore) { RepoStore = RepoStore.Load(tmpStore); var lastUpdate = DateTime.Now; // TODO config UpdatesAvailable = RepoStore.LastUpdated > lastUpdate; }
internal static void Save(string fileName, RepoStore store) { var serializer = new XmlSerializer(typeof(RepoStore)); using (var fis = new FileStream(fileName, FileMode.Create)) { serializer.Serialize(fis, store); } }