private void TotalConnectionStatsChanged(object sender, ConnectionStatsChangedEventArgs e) { if (this.iconAnimationmode == IconAnimationMode.DataTransferring) { var stats = e.TotalConnectionStats; this.SyncthingSyncing = stats.InBytesPerSecond > 0 || stats.OutBytesPerSecond > 0; } }
private void TotalConnectionStatsChanged(object sender, ConnectionStatsChangedEventArgs e) { this.UpdateConnectionStats(e.TotalConnectionStats); }