- 중간 커밋
This commit is contained in:
33
NewsForm.cs
33
NewsForm.cs
@@ -86,7 +86,7 @@ namespace NewsCrawler
|
||||
|
||||
Crawler m_Crawler = null;
|
||||
|
||||
ExcelHandler m_Excel = null;
|
||||
//ExcelHandler m_Excel = null;
|
||||
|
||||
float m_fSupplyContractRate;
|
||||
|
||||
@@ -148,13 +148,13 @@ namespace NewsCrawler
|
||||
lvList.SelectedItems[0].EnsureVisible();
|
||||
}
|
||||
|
||||
foreach(ColumnHeader col in lvList.Columns)
|
||||
{
|
||||
if(!(col == chPriceS || col == chPriceLow || col == chPriceHigh))
|
||||
col.Width = -2;
|
||||
}
|
||||
//foreach(ColumnHeader col in lvList.Columns)
|
||||
//{
|
||||
// if(!(col == chPriceS || col == chPriceLow || col == chPriceHigh))
|
||||
// col.Width = -2;
|
||||
//}
|
||||
|
||||
m_Excel = new ExcelHandler(Util.GetLogPath()+"/PriceCheck"+DateTime.Now.ToString("yyyy-MM-dd")+".xlsx");
|
||||
//m_Excel = new ExcelHandler(Util.GetLogPath()+"/PriceCheck"+DateTime.Now.ToString("yyyy-MM-dd")+".xlsx");
|
||||
|
||||
m_CrawlTimer.Elapsed+=CrawlTimer_Tick;
|
||||
m_CrawlTimer.Interval = m_iCrawlInterval;
|
||||
@@ -387,6 +387,15 @@ namespace NewsCrawler
|
||||
"",
|
||||
strURL }));
|
||||
|
||||
if(lvList.Items.Count == 0)
|
||||
{
|
||||
foreach (ColumnHeader col in lvList.Columns)
|
||||
{
|
||||
if (!(col == chPriceS || col == chPriceLow || col == chPriceHigh))
|
||||
col.Width = -2;
|
||||
}
|
||||
}
|
||||
|
||||
lock(m_URLs)
|
||||
m_URLs.Add(strURL);
|
||||
|
||||
@@ -548,11 +557,11 @@ namespace NewsCrawler
|
||||
|
||||
if(Data.m_bLog == false)
|
||||
{
|
||||
Data.m_bLog = m_Excel.AddRow(Data.m_NewsItem.m_NewsTime.ToString("HH:mm:ss:fff"), Data.m_NewsItem.m_ResTime.ToString("HH:mm:ss:fff"), Data.m_NewsItem.m_strRef, Data.m_NewsItem.m_strTitle, Data.m_NewsItem.m_fElapseT,
|
||||
Data.m_iPriceStart,
|
||||
Data.m_iPriceLow, (Data.m_iPriceLow-Data.m_iPriceStart)*100/(float)Data.m_iPriceStart,
|
||||
Data.m_iPriceHigh, (Data.m_iPriceHigh-Data.m_iPriceStart)*100/(float)Data.m_iPriceStart,
|
||||
Data.m_NewsItem.m_strURL);
|
||||
//Data.m_bLog = m_Excel.AddRow(Data.m_NewsItem.m_NewsTime.ToString("HH:mm:ss:fff"), Data.m_NewsItem.m_ResTime.ToString("HH:mm:ss:fff"), Data.m_NewsItem.m_strRef, Data.m_NewsItem.m_strTitle, Data.m_NewsItem.m_fElapseT,
|
||||
// Data.m_iPriceStart,
|
||||
// Data.m_iPriceLow, (Data.m_iPriceLow-Data.m_iPriceStart)*100/(float)Data.m_iPriceStart,
|
||||
// Data.m_iPriceHigh, (Data.m_iPriceHigh-Data.m_iPriceStart)*100/(float)Data.m_iPriceStart,
|
||||
// Data.m_NewsItem.m_strURL);
|
||||
}
|
||||
|
||||
if(Data.m_bLog == false)
|
||||
|
||||
Reference in New Issue
Block a user