public void FinalizeReferenceLoad()
{
if (!m_bCacheUpdated || !CardMakerSettings.EnableGoogleCache)
{
return;
}
List<GoogleCacheItem> listCacheItems = new List<GoogleCacheItem>();
foreach (var zPair in m_dictionaryDataCache)
{
listCacheItems.Add(new GoogleCacheItem()
{
Reference = zPair.Key,
Data = zPair.Value
});
}
SerializationUtils.SerializeToXmlFile(CardMakerConstants.GOOGLE_CACHE_FILE, listCacheItems,
CardMakerConstants.XML_ENCODING);
}