public async Task UpdateAsync() { _NewsSources.Clear(); foreach (var provider in _Providers) { var category = new NewsSource(provider.Name); foreach (var entry in await provider.GetNewsEntriesAsync()) { category.AddNewsEntry(entry); } _NewsSources.Add(category); } CategoriesUpdated?.Invoke(this, EventArgs.Empty); }
private void OnCategoriesUpdated() { CategoriesUpdated?.Invoke(this, EventArgs.Empty); }