示例#1
0
        public static void addToDownloadList(AsposeComponent component, string urlStr, string outputFile)
        {
            AsyncDownload asyncDownload = new AsyncDownload();

            asyncDownload.Url       = urlStr;
            asyncDownload.LocalPath = getLibaryDownloadPath() + outputFile;
            asyncDownload.Component = component;
            AsyncDownloadList.list.Add(asyncDownload);
        }
 private void UnZipDownloadedFile(AsyncDownload download)
 {
     AsposeComponentsManager.unZipFile(download.LocalPath, Path.Combine(Path.GetDirectoryName(download.LocalPath), download.Component.Name));
 }
 private void processDownloadList()
 {
     if (AsyncDownloadList.list.Count > 0)
     {
         asyncActiveDownload = AsyncDownloadList.list[0];
         AsyncDownloadList.list.Remove(asyncActiveDownload);
         downloadFileFromWeb(asyncActiveDownload.Url, asyncActiveDownload.LocalPath);
         toolStripStatusMessage.Text = "Downloading " + asyncActiveDownload.Component.Name + " API";
     }
     else
     {
         performPostFinish();
     }
 }
 public static void addToDownloadList(AsposeComponent component, string urlStr, string outputFile)
 {
     AsyncDownload asyncDownload = new AsyncDownload();
     asyncDownload.Url = urlStr;
     asyncDownload.LocalPath = getLibaryDownloadPath() + outputFile;
     asyncDownload.Component = component;
     AsyncDownloadList.list.Add(asyncDownload);
 }