示例#1
0
 public void OnRFID(object sender, EventArgs e)
 {
     if (OnRFIDHandler != null)
     {
         OnRFIDHandler.Invoke(this, e);
     }
 }
示例#2
0
        /// <summary>Event RFID(004)</summary>
        /// <param name="rtnFromServer"></param>
        /// <remarks>
        /// <para>1. Load貨, 完成讀取RFID後</para>
        /// <para>2. 收到AskRFIDStatus</para>
        /// </remarks>
        public void RFID(ReturnFromServer rtnFromServer)
        {   // rfID: 讀取的 RFID
            var rfID = rtnFromServer.ReturnCode;

            if (OnRFIDHandler != null)
            {
                var eventArgs = new OnRFIDEventArgs(rfID);
                if (OnRFIDHandler != null)
                {
                    OnRFIDHandler.Invoke(this, eventArgs);
                }
            }
        }