async하게 수정

This commit is contained in:
2018-06-07 15:33:33 +09:00
parent 663d2977ed
commit 9140673315
11 changed files with 412 additions and 317 deletions

View File

@@ -67,7 +67,7 @@ namespace AutoSellerNS
CPStockBid.SetInputValue(2, 20000);
CPStockBid.SetInputValue(3, 'C');
CPStockBid.SetInputValue(4, "2000");
CPStockBid.BlockRequest2(1);
CPStockBid.BlockRequest2(0);
List<object[]> aaRows = new List<object[]>();
@@ -93,7 +93,7 @@ namespace AutoSellerNS
{
while(m_CybosHelper.GetLimitRemainCountRQ() < 2)
Thread.Sleep(100);
CPStockBid.BlockRequest2(1);
CPStockBid.BlockRequest2(0);
}
m_tbLogView.AppendText(string.Format("RequestRQ({0}) ", m_CybosHelper.GetLimitRemainCountRQ()));
@@ -114,7 +114,7 @@ namespace AutoSellerNS
void InsertLog(string strMsg)
{
m_tbLogView.Invoke(new Action(() => {
m_tbLogView.BeginInvoke(new Action(() => {
int iPrevSelectionStart = m_tbLogView.SelectionStart;
int iPrevSelectionLength = m_tbLogView.SelectionLength;
bool bScroll = m_tbLogView.SelectionStart == m_tbLogView.TextLength;
@@ -739,7 +739,7 @@ namespace AutoSellerNS
bHalfTrailing = m_AutoSeller.chSMHalfTrailing.Checked;
string strMethod = "";
m_AutoSeller.cbSMMethod.Invoke(new Action(() => {
m_AutoSeller.cbSMMethod.BeginInvoke(new Action(() => {
strMethod = (string)m_AutoSeller.cbSMMethod.SelectedItem;
}));