- DartAPI 요청 버그 수정
- 8092 종목명 찾기 수정 - 실패한 종목명 배경색 추가
This commit is contained in:
34
NewsForm.cs
34
NewsForm.cs
@@ -475,27 +475,18 @@ namespace NewsCrawler
|
||||
|
||||
int iID = lvList.Items.Count+1;
|
||||
|
||||
CodeList.CODE_VALUE Code = null;
|
||||
if(bInitial == false)
|
||||
{
|
||||
if(strCode == "")
|
||||
Code = m_CodeList.SearchCode(strTitle);
|
||||
else
|
||||
Code = m_CodeList.GetCode(strCode);
|
||||
CodeList.CODE_VALUE Code = m_CodeList.SearchCode(strTitle);
|
||||
if(bInitial == false && Code != null)
|
||||
ProcessSearchAndBuy(new NEWS_ITEM(iID, strTitle, strCode, Code, time, ResTime, strRef, strURL, (float)dElapseT));
|
||||
|
||||
if(Code != null)
|
||||
ProcessSearchAndBuy(new NEWS_ITEM(iID, strTitle, strCode, Code, time, ResTime, strRef, strURL, (float)dElapseT));
|
||||
}
|
||||
|
||||
|
||||
lvList.Items.Add(new ListViewItem(new string[] {
|
||||
var AddedItem = lvList.Items.Add(new ListViewItem(new string[] {
|
||||
iID.ToString(),
|
||||
time.ToString("HH:mm:ss"),
|
||||
ResTime.ToString("HH:mm:ss:fff"),
|
||||
string.Format("{0:n3} ms", dElapseT),
|
||||
strRef,
|
||||
strTitle,
|
||||
(Code != null) ? Code.m_strName : "",
|
||||
(Code != null) ? Code.m_strName : strName,
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
@@ -503,13 +494,14 @@ namespace NewsCrawler
|
||||
"",
|
||||
strURL }));
|
||||
|
||||
if(lvList.Items.Count == 0)
|
||||
AddedItem.UseItemStyleForSubItems = false;
|
||||
if(Code == null && strCode != "")
|
||||
AddedItem.SubItems[chCodeName.Index].BackColor = Color.Gray;
|
||||
|
||||
if(lvList.Items.Count < 2)
|
||||
{
|
||||
foreach (ColumnHeader col in lvList.Columns)
|
||||
{
|
||||
if (!(col == chPriceS || col == chPriceLow || col == chPriceHigh))
|
||||
col.Width = -2;
|
||||
}
|
||||
foreach(ColumnHeader col in lvList.Columns)
|
||||
col.Width = -2;
|
||||
}
|
||||
|
||||
lock(m_URLs)
|
||||
@@ -597,7 +589,6 @@ namespace NewsCrawler
|
||||
ListViewItem item = lvList.Items.Cast<ListViewItem>().FirstOrDefault(s => s.SubItems[chId.Index].Text == Data.m_iID.ToString());
|
||||
item.SubItems[chPriceLow.Index].Text = string.Format("{0:n0}", Data.m_iPriceLow);
|
||||
float fLowRate = (Data.m_iPriceLow-Data.m_iPriceStart)*100/(float)Data.m_iPriceStart;
|
||||
item.UseItemStyleForSubItems = false;
|
||||
item.SubItems[chPriceLowP.Index].Text = string.Format("{0:n}", fLowRate);
|
||||
if(fLowRate > 0)
|
||||
item.SubItems[chPriceLowP.Index].ForeColor = Color.Red;
|
||||
@@ -621,7 +612,6 @@ namespace NewsCrawler
|
||||
item.SubItems[chPriceLow.Index].Text = string.Format("{0:n0}", Data.m_iPriceLow);
|
||||
float fLowRate = (Data.m_iPriceLow-Data.m_iPriceStart)*100/(float)Data.m_iPriceStart;
|
||||
item.SubItems[chPriceLowP.Index].Text = string.Format("{0:n}", fLowRate);
|
||||
item.UseItemStyleForSubItems = false;
|
||||
if(fLowRate > 0)
|
||||
item.SubItems[chPriceLowP.Index].ForeColor = Color.Red;
|
||||
else if(fLowRate < 0)
|
||||
|
||||
Reference in New Issue
Block a user