示例#1
0
		public NewNewsCommand(News news)
		{
			if (news == null)
				throw new ArgumentNullException("news");

			News = news;
		}
示例#2
0
		/// <summary>
		/// To call the event <see cref="Connector.NewNews"/>.
		/// </summary>
		/// <param name="news">News.</param>
		private void RaiseNewNews(News news)
		{
			NewNews.SafeInvoke(news);
		}
示例#3
0
		/// <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);
				}
			}