/// <summary> /// This function will start the download of the whole project. This function is used for the update as well. /// </summary> private void DownloadProject() { B_MainAction.Enabled = false; ProjectUpdateManager updater = new ProjectUpdateManager(_data); updater.DownloadProgressChanged += Updater_DownloadProgressChanged; updater.DownloadComplete += Updater_DownloadComplete; if (updater.ReadyForUpdate) { updater.UpdateAsync(); } }
/// <summary> /// This function will check if there is an update available /// </summary> /// <returns></returns> private bool NeedUpdate() { ProjectUpdateManager updater = new ProjectUpdateManager(_data); return(updater.UpdateAvailable()); }