public NewNewsCommand(News news) { if (news == null) throw new ArgumentNullException("news"); News = news; }
/// <summary> /// To call the event <see cref="Connector.NewNews"/>. /// </summary> /// <param name="news">News.</param> private void RaiseNewNews(News news) { NewNews.SafeInvoke(news); }
/// <summary> /// To call the event <see cref="Connector.NewsChanged"/>. /// </summary> /// <param name="news">News.</param> private void RaiseNewsChanged(News news) { NewsChanged.SafeInvoke(news); }
private void OnNews(News news) { lock (_notSavedNews.SyncRoot) { if (_notSavedNews.Count == 0) return; if (!_notSavedNews.Contains(news)) return; _parent.AddInfoLog(LocalizedStrings.Str3620Params, news.Headline); _entityRegistry.News.Add(news); _notSavedNews.Remove(news); } }