示例#1
0
        public SerializableAPIWalletTransactions ToXMLItem()
        {
            var ret = new SerializableAPIWalletTransactions();

            foreach (var entry in this)
            {
                ret.WalletTransactions.Add(entry.ToXMLItem());
            }
            return(ret);
        }
示例#2
0
        /// <summary>
        /// Exports the WalletTransactions to the cached file.
        /// </summary>
        internal void ExportToCacheFile()
        {
            // Save the file to the cache
            string filename = m_character.Name + "-" + ESIAPICharacterMethods.WalletTransactions;
            var    exported = new SerializableAPIWalletTransactions();

            foreach (WalletTransaction tx in Items)
            {
                exported.WalletTransactions.Add(tx.Export());
            }

            LocalXmlCache.SaveAsync(filename, Util.SerializeToXmlDocument(exported)).
            ConfigureAwait(false);

            // TODO Fire event to update the UI ?
            // EveMonClient.OnCharacterKillLogUpdated(m_ccpCharacter);
        }