private void SingleLoaded(WebLoader loader) { if (!string.IsNullOrEmpty(loader.Error)) { SingleError(loader); return; } OnSingleLoaded?.Invoke(loader); }
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); } }