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