Esempio n. 1
0
 /// <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) { }
 }
Esempio n. 2
0
 /// <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.");
     }
 }