Exemplo n.º 1
0
        public int Request(bool bNext = false)
        {
            _ewh_RecvSync.Reset();
            _queryResult = null;

            int result = _xaQuery.Request(bNext);

            if (result >= 0)
            {
                while (true)
                {
                    Application.DoEvents();
                    if (_ewh_RecvSync.WaitOne(16) == true)
                    {
                        break;
                    }
                }
            }

            return(result);
        }
Exemplo n.º 2
0
 private void _xaQuery_ReceiveMessage(bool bIsSystemError, string nMessageCode, string szMessage)
 {
     _queryResult = new XAQueryResult(bIsSystemError, nMessageCode, szMessage);
 }