コード例 #1
0
        private bool DownloadFile(string Url, string SavePath)
        {
            try {
                TimeoutWebClient client = new TimeoutWebClient();
                client.TimeOut = 5000;
                client.DownloadFile(Url, SavePath);

                return(true);
            } catch (Exception e) {
                System.Diagnostics.Debug.WriteLine(e);
                return(false);
            }
        }
コード例 #2
0
ファイル: UpdateHandler.cs プロジェクト: GodLesZ/svn-dump
		private bool DownloadFile( string Url, string SavePath ) {
			try {
				TimeoutWebClient client = new TimeoutWebClient();
				client.TimeOut = 5000;
				client.DownloadFile( Url, SavePath );

				return true;
			} catch( Exception e ) {
				System.Diagnostics.Debug.WriteLine( e );
				return false;
			}

		}