/// <summary> /// /// </summary> /// <param name="hrItem"></param> /// <param name="progress">-1标示下载失败,100标示下载完成</param> public void UpdateProgress(int hrItem, int progress) { if (downloadFileList.ContainsKey(hrItem)) { DownloadItemInfo info = downloadFileList[hrItem]; info.progress = progress; form.UpdateDownloadProgress(hrItem, progress); if (Framework.Environment.PRODUCT_TYPE == Framework.Environment.E_PRODUCT_TYPE.SH_PRODUCT) { if (progress == 100) { string filename = info.downloadPath + "\\" + info.dstName; int type = 0; switch (info.type) { case DownloadType.视频截图: case DownloadType.结果图片: type = 1026; break; case DownloadType.浓缩导出: case DownloadType.视频剪辑: type = 1036; break; } IR_SDK.IR_UploadVideoFile(filename, type); MyLog4Net.Container.Instance.Log.Debug("IR_UploadVideoFile:" + filename + " type:" + type); } } } }
public void UpdateProgress(DownloadItemInfo info) { if (downloadFileList.ContainsKey(info.hrItem)) { downloadFileList[info.hrItem] = info; } else { downloadFileList.Add(info.hrItem, info); } //form.UpdateDownloadProgress(info.hrItem, info.progress); ShowDownloadInfoWnd(); }