private static void loadTransactionsFromWeb(out ds.TransactionsDataTable tdt, bool refreshFromWeb) { if (refreshFromWeb) { TableTools.GetTableFromWebAndStoreFile(txUri, currentTxFile); } DataTable txsRaw = TableTools.LoadTableFromFile(currentTxFile); tdt = new ds.TransactionsDataTable(); TableTools.SerializeTableAs(tdt, ref txsRaw); }
private static void loadRatesFromWeb(out ds.RatesDataTable rdt, bool refreshFromWeb) { if (refreshFromWeb) { TableTools.GetTableFromWebAndStoreFile(rtxUri, currentRatesFile); } DataTable ratesRaw = TableTools.LoadTableFromFile(currentRatesFile); rdt = new ds.RatesDataTable(); TableTools.SerializeTableAs(rdt, ref ratesRaw); if (refreshFromWeb) { fillMissingRates(ref rdt); rdt.AcceptChanges(); rdt.WriteXml(currentRatesFile, XmlWriteMode.IgnoreSchema); } }