Exemplo n.º 1
0
        private void InternalPauseAll()
        {
            //Debug.Log ("Internal Pause All");
            this._cancelAllInProgress = true;
            Download download        = null;
            bool     somethingPaused = false;

            for (int i = 0; i < this._downloads.Count; i++)
            {
                //Debug.Log ("Pausando...");
                download = (this._downloads[i] as Download);
                if (!somethingPaused && download.isDownloading())
                {
                    somethingPaused = true;
                }
                (this._downloads[i] as Download).Pause();
            }

            this._cancelAllInProgress = false;
            if (somethingPaused)
            {
                this.informDelegateThatDownloadsAreDone();
            }
        }