Ejemplo n.º 1
0
 /// <summary>
 /// Exports the QIF document to the <see cref="TextWriter"/>.
 /// </summary>
 public void Save(TextWriter writer)
 {
     AccountListWriter.Write(writer, AccountListTransactions);
     BasicTransactionWriter.Write(writer, Headers.Asset, AssetTransactions);
     BasicTransactionWriter.Write(writer, Headers.Bank, BankTransactions);
     BasicTransactionWriter.Write(writer, Headers.Cash, CashTransactions);
     BasicTransactionWriter.Write(writer, Headers.CreditCard, CreditCardTransactions);
     BasicTransactionWriter.Write(writer, Headers.Liability, LiabilityTransactions);
     CategoryListWriter.Write(writer, CategoryListTransactions);
     ClassListWriter.Write(writer, ClassListTransactions);
     InvestmentWriter.Write(writer, InvestmentTransactions);
     MemorizedTransactionListWriter.Write(writer, MemorizedTransactionListTransactions);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Exports the QIF document to the <see cref="TextWriter"/>.
 /// </summary>
 public void Save(TextWriter writer)
 {
     TagListWriter.Write(writer, TagTransactions);
     CategoryListWriter.Write(writer, CategoryListTransactions);
     ClassListWriter.Write(writer, ClassListTransactions);
     AccountListWriter.Write(writer, AccountList);
     if (AutoSwitchAccountList.autoSwitchAccounts.Count == 0)
     {
         SecurityListWriter.Write(writer, SecurityTransactions);
     }
     AutoSwitchAccountListWriter.Write(writer, AutoSwitchAccountList, SecurityTransactions);
     BasicTransactionWriter.Write(writer, Headers.Asset, AssetTransactions);
     BasicTransactionWriter.Write(writer, Headers.Bank, BankTransactions);
     BasicTransactionWriter.Write(writer, Headers.Cash, CashTransactions);
     BasicTransactionWriter.Write(writer, Headers.CreditCard, CreditCardTransactions);
     BasicTransactionWriter.Write(writer, Headers.Liability, LiabilityTransactions);
     InvestmentWriter.Write(writer, InvestmentTransactions);
     MemorizedTransactionListWriter.Write(writer, MemorizedTransactionListTransactions);
     PriceListWriter.Write(writer, PriceTransactions);
 }