void InternetClient_Downloaded(object sender, InternetClientEventArgs e) { TotalReceiveBytes += e.ReceiveBytes; TotalSentBytes += e.SentBytes; }
//public static void PerformDownloaded(InternetClientEventArgs e) //{ // OnDownloaded(e); //} private static void OnDownloaded(InternetClientEventArgs e) { if (e.ReceiveBytes > 0) { Common.CurrentSettings.Information.CurrentDownloadByte += e.ReceiveBytes; } if (Downloaded != null) { Downloaded(null, e); } }
private static void OnPosting(InternetClientEventArgs e) { if (e.SentBytes > 0) { Common.CurrentSettings.Information.CurrentUploadByte += e.SentBytes; } }
public static void PerformResponseRecieved(InternetClientEventArgs e) { OnDownloaded(e); OnPosting(e); }