Пример #1
0
        private ILexEntryRef FindMatchingEntryRef(ILexEntry variant, IVariantComponentLexeme componentLexeme, ILexEntryType selectedEntryType)
        {
            ILexEntryRef matchingEntryRef = null;

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