private void CallBackEvent(int winNum, BloombergTicker data, string text, Image image, string errorMessage)
        {
            if (_blpGetDataCallback != null)
            {
                ALLQProgressArgs arg = new ALLQProgressArgs();
                arg.Windownum = winNum;
                arg.ISIN      = data.ISIN;
                arg.Text      = text;
                arg.Image     = image;

                if (!string.IsNullOrEmpty(errorMessage))
                {
                    arg.IsError      = true;
                    arg.ErrorMessage = errorMessage;
                }

                _blpGetDataCallback.Report(arg);
            }
        }
Пример #2
0
        private void BLPDataArrive(ALLQProgressArgs args)
        {
            int    winNum       = args.Windownum;
            string ISIN         = args.ISIN;
            Image  image        = args.Image;
            string text         = args.Text;
            bool   isSuccess    = !args.IsError;
            string errorMessage = args.ErrorMessage;


            if (isSuccess)
            {
                picResult.Image = image;
                txtResult.Text  = text;
            }
            else  // Error
            {
                // error handle
            }
        }