Пример #1
0
        private void m_ReqConSndRevComplete(object sender, LAMEventArgs evAgs)
        {
            LAMEventArgs _tempArgs = new LAMEventArgs();

            _tempArgs.SetMessage(evAgs.status, evAgs.message);
            m_eventQueueList.Add(_tempArgs);
        }
Пример #2
0
        private void m_DataEventTrigger(DATA_STATUS_CODE status, string msg)
        {
            LAMEventArgs eventArgs = new LAMEventArgs();

            eventArgs.SetMessage(status, msg);
            if (JLAM_Event_Fir != null)
            {
                JLAM_Event_Fir(this, eventArgs);
            }
        }
Пример #3
0
        private void m_LinkFailedEventTrigger(int msg)
        {
            DATA_STATUS_CODE status = DATA_STATUS_CODE.ERROR_TRIGGER_CODE;

            m_isConnected = false;
            LAMEventArgs eventArgs = new LAMEventArgs();

            eventArgs.SetMessage(status, msg);
            if (JLAM_Event_Fir != null)
            {
                JLAM_Event_Fir(this, eventArgs);
            }
        }
Пример #4
0
 void Update()
 {
     if (m_eventQueueList.Count > 0)
     {
         int count = m_eventQueueList.Count;
         for (int idex = 0; idex < count; ++idex)
         {
             if (m_eventQueueList[0] == null)
             {
                 m_eventQueueList.RemoveAt(0);
                 continue;
             }
             LAMEventArgs _tempArgs = new LAMEventArgs();
             _tempArgs.SetMessage(m_eventQueueList[0].status, m_eventQueueList[0].message);
             if (JLAM_Event_Fir != null)
             {
                 JLAM_Event_Fir(this, _tempArgs);
             }
             m_eventQueueList.RemoveAt(0);
         }
     }
 }