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

GetPOS() private method

private GetPOS ( ) : IPartOfSpeech
return IPartOfSpeech
		private IPartOfSpeech GetPOS()
		{
			ISilDataAccess sda = m_cache.DomainDataByFlid;
			if (m_selectedHvo != 0)
			{
				var owner = m_cache.ServiceLocator.GetInstance<ICmObjectRepository>().GetObject(m_selectedHvo).Owner;
				while (owner != null && owner is IMoInflClass)
					owner = owner.Owner;
				return owner as IPartOfSpeech;
			}
			return null;
		}