Exemplo n.º 1
0
        private ILexEntryRef FindMatchingEntryRef(ILexEntry variant, IVariantComponentLexeme componentLexeme, ILexEntryType selectedEntryType)
        {
            ILexEntryRef matchingEntryRef;

            if (variant != null)
            {
                // see if the starting entry has the SelectedID already as a ComponentLexeme
                matchingEntryRef = variant.FindMatchingVariantEntryRef(componentLexeme,
                                                                       selectedEntryType);
            }
            else
            {
                // determine whether the selected entry or sense is already
                // linked to an existing variant with the given lexeme form.
                matchingEntryRef = componentLexeme.FindMatchingVariantEntryBackRef(selectedEntryType, m_tssVariantLexemeForm);
            }
            return(matchingEntryRef);
        }
		private ILexEntryRef FindMatchingEntryRef(ILexEntry variant, IVariantComponentLexeme componentLexeme, ILexEntryType selectedEntryType)
		{
			ILexEntryRef matchingEntryRef;
			if (variant != null)
			{
				// see if the starting entry has the SelectedID already as a ComponentLexeme
				matchingEntryRef = variant.FindMatchingVariantEntryRef(componentLexeme,
					selectedEntryType);
			}
			else
			{
				// determine whether the selected entry or sense is already
				// linked to an existing variant with the given lexeme form.
				matchingEntryRef = componentLexeme.FindMatchingVariantEntryBackRef(selectedEntryType, m_tssVariantLexemeForm);
			}
			return matchingEntryRef;
		}