/** * * @return */ public bool downloadComponents() { if (!isIneternetConnected()) { _pageOne.showMessage(Constants.INTERNET_CONNECTION_REQUIRED_MESSAGE_TITLE, Constants.INTERNET_CONNECTION_REQUIRED_MESSAGE, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning); return(false); } foreach (GroupDocsComponent component in GroupDocsComponents.list.Values) { if (component.is_selected()) { GlobalData.SelectedComponent = component.get_name(); if (libraryAlreadyExists(component.get_downloadFileName())) { component.set_currentVersion(readVersion(component)); if (readVersion(component).CompareTo(component.get_latestVersion()) == 0) { component.set_downloaded(true); } else { addToDownloadList(component, component.get_downloadUrl(), component.get_downloadFileName()); } } else { addToDownloadList(component, component.get_downloadUrl(), component.get_downloadFileName()); } } } return(true); }
/** * * @return */ public bool downloadComponents() { if (!isIneternetConnected()) { _pageOne.showMessage(Constants.INTERNET_CONNECTION_REQUIRED_MESSAGE_TITLE, Constants.INTERNET_CONNECTION_REQUIRED_MESSAGE, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning); return(false); } foreach (AsposeComponent component in AsposeComponents.list.Values) { if (component.is_selected()) { GlobalData.SelectedComponent = component.get_name(); ProductRelease productRelease = getProductReleaseInfo(component.get_name()); component.set_downloadUrl(productRelease.DownloadLink); component.set_downloadFileName(productRelease.FileName); component.set_changeLog(productRelease.ChangeLog); component.set_latestVersion(productRelease.VersionNumber); if (libraryAlreadyExists(component.get_downloadFileName())) { component.set_currentVersion(readVersion(component)); if (readVersion(component).CompareTo(component.get_latestVersion()) == 0) { component.set_downloaded(true); //storeVersion(component); } else { addToDownloadList(component, component.get_downloadUrl(), component.get_downloadFileName()); } } else { addToDownloadList(component, component.get_downloadUrl(), component.get_downloadFileName()); } } } return(true); }