Exemplo n.º 1
0
        private void OnGetStockCode()
        {
            TaskCompletionSource <bool> tcs = null;

            tcs = new TaskCompletionSource <bool>();

            //Task.Delay(3000).Wait();
            _clsDataAccessUtil.Delay(3000);

            tcs.SetResult(true);

            string strStockCode = "";

            strStockCode = GetStockCode();
            if (strStockCode == "End")
            {
                return;
            }
            GetOpt10005Caller(strStockCode);

            proBar10005.Value = _seqNo;

            WriteTextSafe(strStockCode + "(" + ClsAxKH.GetMasterCodeName(strStockCode) + ")" + " 작업 중");

            //   tcs.SetResult(true);
        }
Exemplo n.º 2
0
        private void WaitTime()
        {
            TaskCompletionSource <bool> tcs = null;

            tcs = new TaskCompletionSource <bool>();
            //Task.Delay(3000).Wait();
            if (ClsAxKH.SPEED_CALL == true)
            {
                _clsDataAccessUtil.Delay(550);
            }
            else
            {
                _clsDataAccessUtil.Delay(3650);
            }

            tcs.SetResult(true);
        }
Exemplo n.º 3
0
        private void WaitTime()
        {
            TaskCompletionSource <bool> tcs = null;

            tcs = new TaskCompletionSource <bool>();
            //Task.Delay(3000).Wait();
            _clsDataAccessUtil.Delay(3600);
            tcs.SetResult(true);
        }