Esempio n. 1
0
 private void SingleLoaded(WebLoader loader)
 {
     if (!string.IsNullOrEmpty(loader.Error))
     {
         SingleError(loader);
         return;
     }
     OnSingleLoaded?.Invoke(loader);
 }
Esempio n. 2
0
        private void SingleLoaded(HttpLoad loader)
        {
            if (!string.IsNullOrEmpty(loader.Error))
            {
                loader.Close(); // 下载失败则关闭
                Error = Error + "\n" + loader.Error;
            }
            OnSingleLoaded?.Invoke(loader);

            if (LoadIndex == LoadNum)
            {
                IsDone = true;
            }
            if (IsDone)
            {
                OnAllLoaded?.Invoke(this);
            }
        }