private void cdfDownloading_DownloadProgressUpdate(PRoCon.Core.CDownloadFile cdfSender) { try { this.lblDownloadStatus.Text = cdfSender.GetLabelProgress(); } catch (InvalidOperationException e) { // Handle exception } }
private void cdfDownloading_DownloadProgressUpdate(PRoCon.Core.CDownloadFile cdfSender) { this.lblDownloadStatus.Text = cdfSender.GetLabelProgress(); }
void cdfDownloading_DownloadError(PRoCon.Core.CDownloadFile cdfSender) { this.lblDownloadStatus.Text = "Error dowloading latest version"; }
private void m_updateDownloader_UpdateDownloading(PRoCon.Core.CDownloadFile cdfDownloading) { cdfDownloading.DownloadProgressUpdate += new PRoCon.Core.CDownloadFile.DownloadFileEventDelegate(cdfDownloading_DownloadProgressUpdate); cdfDownloading.DownloadError += new PRoCon.Core.CDownloadFile.DownloadFileEventDelegate(cdfDownloading_DownloadError); }