Example #1
0
        private void GetOpt10015Caller(string stockCode)
        {
            if (_opt10015 != null)
            {
                _opt10015.Dispose();
                _opt10015 = null;
            }

            _opt10015 = new ClsOpt10015();

            TaskCompletionSource <bool> tcs = null;

            tcs = new TaskCompletionSource <bool>();

            if (tcs == null || tcs.Task.IsCompleted)
            {
                return;
            }

            SetFormId();

            _opt10015.SetInit(_FormId);
            _opt10015.JustRequest(stockCode, _stdDate, "", 0);

            OPS10060.Text = ClsAxKH._limitCount.ToString();
            lblTime.Text  = ClsAxKH._limitTime.ToString();

            tcs.SetResult(true);
        }
Example #2
0
        private void GetOpt10015Caller(string stockCode, string MaxDate, string MinDate)
        {
            if (_opt10015 != null)
            {
                _opt10015.Dispose();
                _opt10015 = null;
            }

            _opt10015 = new ClsOpt10015();

            TaskCompletionSource <bool> tcs = null;

            tcs = new TaskCompletionSource <bool>();

            if (tcs == null || tcs.Task.IsCompleted)
            {
                return;
            }

            _opt10015.SetInit(_FormId);
            _opt10015.JustRequest(stockCode, _stdDate, "", 0);

            tcs.SetResult(true);
        }