예제 #1
0
        /// <summary>
        /// 处理最新数据的方法
        /// </summary>
        /// <param name="message">数据</param>
        public void OnLatestDataCallBack(CMessage message)
        {
            CMessage copyMessage = new CMessage();

            copyMessage.Copy(message);
            BeginInvoke(copyMessage);
        }
예제 #2
0
        /// <summary>
        /// 自选股数据回调
        /// </summary>
        /// <param name="message">消息</param>
        private void UserSecurityDataCallBack(CMessage message)
        {
            CMessage copyMessage = new CMessage();

            copyMessage.Copy(message);
            m_window.BeginInvoke(message);
        }
예제 #3
0
 /// <summary>
 /// 等待消息的处理
 /// </summary>
 /// <param name="message">消息</param>
 public virtual void OnWaitMessageHandle(CMessage message)
 {
     if (m_waitMessages.Count > 0)
     {
         lock (m_waitMessages)
         {
             if (m_waitMessages.ContainsKey(message.m_requestID))
             {
                 CMessage waitMessage = m_waitMessages[message.m_requestID];
                 waitMessage.Copy(message);
             }
         }
     }
 }