public void ApplyUpdates() { this.Updater.Progress.ChangeStatus("Aplicando actualizaciones de " + this.Name); if (this.Files == null) { return; } foreach (File Fil in this.Files) { if (Fil.HasNewVersion() && Fil.IsDownloaded) { Fil.ApplyUpdates(); } } }
public void DownloadNewFiles() { this.Updater.Progress.ChangeStatus("Descargando archivos nuevos de " + this.Name); if (this.Files == null) { return; } foreach (File Fil in this.Files) { if (Fil.HasNewVersion() && Fil.IsDownloaded == false) { Fil.Download(); this.Updater.Progress.Value = this.Updater.GetDownloadedSize(); } } }
public int GetDownloadedFileCount() { if (this.Files == null) { return(0); } int Res = 0; foreach (File Fil in this.Files) { if (Fil.HasNewVersion() && Fil.IsDownloaded) { Res++; } } return(Res); }
public int GetNewFileCount() { if (this.Files == null) { return(0); } int Res = 0; foreach (File Fil in this.Files) { if (Fil.HasNewVersion()) { Res++; } } return(Res); }