Exemplo n.º 1
0
 private void SendSuccessed(DownloadSenderSendEventArgs e)
 {
     LastSendDateTime    = DateTime.Now;
     LastSendByteCount   = e.SendContent.Length;
     TotalSendByteCount += LastSendByteCount;
     ResetTimeOut();
 }
Exemplo n.º 2
0
 private void SendFailed(DownloadSenderSendEventArgs e)
 {
     _isDownloading = false;
     _timerOutTimer.Stop();
     DownloadInterrupt(new DownloadInterruptedEventArgs
     {
         Message   = "发送数据失败,请检查串口连接。",
         Exception = e.Exception
     });
 }