/// <summary> /// Kui Balance Sheet on valmis, saadetakse see läbi Exceli parseri ja siis XML parseri salvestama /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void bs_DownloadDataCompleted(object sender, System.Net.DownloadDataCompletedEventArgs e) { try { byte[] dbytes = e.Result; YChartsExcelScraperTest yExcel = new YChartsExcelScraperTest(); _bsData = yExcel.GetData(dbytes, _symbol); _xmlScraper.GetData(_bsData, _finDataAdapter.FinDataDao); PrepareData(2, sender); } catch (System.Reflection.TargetInvocationException) { } }
/// <summary> /// Kui Income Statement on valmis, saadetakse see läbi Exceli parseri ja siis XML parseri salvestama /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void is_DownloadDataCompleted(object sender, System.Net.DownloadDataCompletedEventArgs e) { try { byte[] dbytes = e.Result; YChartsExcelScraperTest yExcel = new YChartsExcelScraperTest(); _isData = yExcel.GetData(dbytes, _symbol); _xmlScraper.GetData(_isData, _finDataAdapter.FinDataDao); PrepareData(1, sender); } catch (System.Reflection.TargetInvocationException) { MessageBox.Show("Invalid symbol or no data."); } }