Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }