Пример #1
0
 static void Submit(string url)
 {
     try
     {
         WebClient wc = new CustomWC(false, 30000);
         wc.Proxy = WebRequest.GetSystemWebProxy();
         wc.DownloadStringCompleted += wc_DownloadStringCompleted;
         wc.DownloadStringAsync(new Uri(url));
     }
     catch { }
 }
Пример #2
0
 private void UpdateCheck()
 {
     CustomWC wc = new CustomWC(false, 30000);
     wc.DownloadStringCompleted += wc_DownloadStringCompleted;
     wc.DownloadStringAsync(new Uri("http://mega.nz/" + (new Random()).Next()));
 }
Пример #3
0
 private void UpdateCheck()
 {
     CustomWC wc = new CustomWC(false, 30000);
     wc.DownloadStringCompleted += wc_DownloadStringCompleted;
     wc.DownloadStringAsync(new Uri("http://megadesktop.com/version.txt?rnd=" + (new Random()).Next()));
 }