예제 #1
0
 void InternetClient_Downloaded(object sender, InternetClientEventArgs e)
 {
     TotalReceiveBytes += e.ReceiveBytes;
     TotalSentBytes += e.SentBytes;
 }
예제 #2
0
 //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);
     }
 }
예제 #3
0
 private static void OnPosting(InternetClientEventArgs e)
 {
     if (e.SentBytes > 0)
     {
         Common.CurrentSettings.Information.CurrentUploadByte += e.SentBytes;
     }
 }
예제 #4
0
 public static void PerformResponseRecieved(InternetClientEventArgs e)
 {
     OnDownloaded(e);
     OnPosting(e);
 }