예제 #1
0
        public void SendDataToHost(List <string> response)
        {
            SendDataToHostEventArgs e = new SendDataToHostEventArgs();

            e.Response = response;
            EventHandler <SendDataToHostEventArgs> sendData = this.SendDataToHostEvent;

            if (sendData != null)
            {
                sendData(this, e);
            }
        }
예제 #2
0
        public void SendAUDataToHost(List <string> result)
        {
            try
            {
                var e = new SendDataToHostEventArgs();
                e.AUStringResult = result;

                EventHandler <SendDataToHostEventArgs> sendData = this.ReturnDataEvent;
                if (sendData != null)
                {
                    sendData(this, e);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
 public void SendAURequestToHost(string RackNo, string PosNo, string SampleNo, string Barcode)
 {
     try
     {
         var e = new SendDataToHostEventArgs();
         e.AUBarcode  = Barcode;
         e.AUPosNo    = PosNo;
         e.AURackNo   = RackNo;
         e.AUSampleNo = SampleNo;
         EventHandler <SendDataToHostEventArgs> sendData = this.ReturnRequestEvent;
         if (sendData != null)
         {
             sendData(this, e);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }