public void downMethodFile(string fileName)
 {
     try
     {
         HttpWebClient <string> web = new HttpWebClient <string>();
         web.DownloadFileAsync(new Uri(downloadURL), fileName);
         web.DownloadProgressChanged += Web_DownloadProgressChanged;
         web.DownloadFileCompleted   += Web_DownloadFileCompleted;
     }
     catch (Exception ex)
     {
     }
 }
 public void downMethodFile(AddAttachmentDto msg)
 {
     try
     {
         HttpWebClient <AddAttachmentDto> web = new HttpWebClient <AddAttachmentDto>();
         web.obj = msg;
         web.DownloadFileAsync(new Uri(msg.localPath), msg.path);
         web.DownloadProgressChanged += Web_DownloadProgressChanged;
         web.DownloadFileCompleted   += Web_DownloadFileCompleted;
     }
     catch (Exception ex)
     {
     }
 }