실시간으로 수정
This commit is contained in:
@@ -48,11 +48,16 @@ namespace upper_limit_crawler
|
||||
|
||||
CPTRADELib.CpTd6033 m_Td6033 = new CPTRADELib.CpTd6033();
|
||||
|
||||
bool m_bRequesting = false;
|
||||
|
||||
public ULBalanceDlg(ULDataMgr DataMgr)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.TopLevel = false;
|
||||
|
||||
m_DataMgr = DataMgr;
|
||||
|
||||
InitializeComponent();
|
||||
MainForm.SetDoubleBuffered(lvBalance);
|
||||
btSell.Enabled = false;
|
||||
|
||||
@@ -126,10 +131,10 @@ namespace upper_limit_crawler
|
||||
listViewItem.SubItems[chProfitRate.Index].ForeColor = Color.Blue;
|
||||
lvBalance.Items.Add(listViewItem);
|
||||
|
||||
UlUtil.Trace(string.Format("{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10}",
|
||||
strCodeName, iPayBalance, iPayUnitPrice,
|
||||
iConclusionBalanceCnt, iEvaluationPrice, iEvaluationProfit,
|
||||
dReturn, strCode, iAskableCnt, dConclusionUnitPrice, iUnitBEP));
|
||||
//UlUtil.Trace(string.Format("{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10}",
|
||||
// strCodeName, iPayBalance, iPayUnitPrice,
|
||||
// iConclusionBalanceCnt, iEvaluationPrice, iEvaluationProfit,
|
||||
// dReturn, strCode, iAskableCnt, dConclusionUnitPrice, iUnitBEP));
|
||||
}
|
||||
|
||||
m_OwnList.RemoveAll(c => c.m_bCheck = false);
|
||||
@@ -140,6 +145,10 @@ namespace upper_limit_crawler
|
||||
|
||||
private void RefreshCurPrice()
|
||||
{
|
||||
if (m_bRequesting == true)
|
||||
return;
|
||||
m_bRequesting = true;
|
||||
|
||||
if (m_OwnList.Count <= 0)
|
||||
return;
|
||||
|
||||
@@ -187,12 +196,12 @@ namespace upper_limit_crawler
|
||||
// 미체결 잔량 취소
|
||||
}
|
||||
}
|
||||
|
||||
m_bRequesting = false;
|
||||
}
|
||||
|
||||
private void RefreshData(object sender, EventArgs e)
|
||||
{
|
||||
m_MainTimer.Enabled = false;
|
||||
|
||||
int iCurTime = Environment.TickCount;
|
||||
if(m_iLastTime==0)
|
||||
{
|
||||
@@ -217,8 +226,6 @@ namespace upper_limit_crawler
|
||||
|
||||
|
||||
m_iLastTime=iCurTime;
|
||||
|
||||
m_MainTimer.Enabled = true;
|
||||
}
|
||||
|
||||
private void btRefresh_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user