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); } }
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; } }