Example #1
0
        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();
                }
            }
        }
Example #2
0
        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();
                }
            }
        }
Example #3
0
        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);
        }
Example #4
0
        public int GetNewFileCount()
        {
            if (this.Files == null)
            {
                return(0);
            }

            int Res = 0;

            foreach (File Fil in this.Files)
            {
                if (Fil.HasNewVersion())
                {
                    Res++;
                }
            }

            return(Res);
        }