Esempio n. 1
0
 private void StopSendingSvc()
 {
     if (keepSending)
     {
         keepSending = false;
         sendThread.Join();
         sendThread   = null;
         sendMsgQueue = null;
     }
 }
Esempio n. 2
0
 private void StartSendingSvc()
 {
     if (!keepSending)
     {
         keepSending  = true;
         sendMsgQueue = new SerialPortBuffer();
         sendThread   = new Thread(SendThread);
         sendThread.Start();
     }
 }