/// <summary>
 ///
 /// </summary>
 /// <param name="sp"></param>
 public SerialPortTransmitAdpater(SerialPortManager spm)
 {
     if (spm == null)
     {
         throw new ArgumentNullException("spm");
     }
     this.Source = spm;
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="bytes"></param>
        public void Write(byte[] bytes)
        {
            SerialPortManager spm = this.SerialPortManager;

            if (spm != null && spm.IsOpen)
            {
                spm.Write(bytes);
            }
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sp"></param>
 public SerialPortTransmitAdpater(SerialPortManager spm)
 {
     if (spm == null)
         throw new ArgumentNullException("spm");
     this.Source = spm;
 }