예제 #1
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()));
        }
예제 #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
 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 { }
 }