SIL.FieldWorks.FdoUi.InflectionClassEditor.GetPossiblePartsOfSpeech C# (CSharp) Method

GetPossiblePartsOfSpeech() private method

private GetPossiblePartsOfSpeech ( ) : Set
return Set
		private Set<int> GetPossiblePartsOfSpeech()
		{
			ISilDataAccess sda = m_cache.DomainDataByFlid;
			Set<int> possiblePOS = new Set<int>();
			if (m_selectedHvo != 0)
			{
				var rootPos = m_cache.ServiceLocator.GetInstance<ICmObjectRepository>().GetObject(m_selectedHvo);
				while (rootPos != null && rootPos.ClassID == MoInflClassTags.kClassId)
					rootPos = rootPos.Owner;

				if (rootPos != null)
					AddChildPos(sda, rootPos.Hvo, possiblePOS);
			}
			return possiblePOS;
		}