SIL.FieldWorks.XWorks.DTMenuHandler.ComponentShowsComplexForm C# (CSharp) Method

ComponentShowsComplexForm() private method

Does this component show this complex form in the dictionary? The component can be a ILexEntry or a ILexSense. The reference to the complex form from the component is outted.
private ComponentShowsComplexForm ( ICmObject component, ILexEntry cplxForm, ILexEntryRef &cfRef ) : bool
component ICmObject A component of a complex form, not necessarily cplxForm.
cplxForm ILexEntry The complex form in question.
cfRef ILexEntryRef The complex form reference from the component.
return bool
		private bool ComponentShowsComplexForm(ICmObject component, ILexEntry cplxForm, out ILexEntryRef cfRef)
		{
			cfRef = (from item in cplxForm.EntryRefsOS where item.RefType == LexEntryRefTags.krtComplexForm select item).FirstOrDefault();
			Debug.Assert(cfRef != null,"A component of a complex form has no reference to its complex form");
			return cfRef.ShowComplexFormsInRS.Contains(component);
		}