SIL.FieldWorks.XWorks.InterestingTextList.UpdateInterestingTexts C# (CSharp) Method

UpdateInterestingTexts() private method

private UpdateInterestingTexts ( ) : void
return void
		private void UpdateInterestingTexts()
		{
			// Need to add the new text(s). Have to find which ones to add.
			var coreTextsSet = new HashSet<IStText>(CoreTexts);
			int count = 0;
			foreach (var newText in (from sttext in GetCoreTexts() where !coreTextsSet.Contains(sttext) select sttext))
			{
				count++;
				CoreTexts.Add(newText);
				if (m_interestingTests != null)
					m_interestingTests.Add(newText);
			}
			RaiseInterestingTextsChanged(CoreTexts.Count - count, count, 0);
			ClearInvalidObjects(CoreTexts, 0, true);
		}