Exemplo n.º 1
0
 private void Download()
 {
     //if (ModelClient.Download(ModelId, dlgDownloadModel.FileName, UpdateProgress) != HttpStatusCode.OK)
     if (ModelClient.Download(ModelId, dlgDownloadModel.FileName, null) != HttpStatusCode.OK)
     {
         MessageBox.Show("Failed to download file");
     }
     else
     {
         DialogResult result = MessageBox.Show("Successfully downloaded.");
         if (result == DialogResult.OK)
         {
             progressBar.Value = 0;
         }
     }
 }