SIL.FieldWorks.XWorks.LexEd.LexReferenceTreeRootLauncher.GetChildObject C# (CSharp) Method

GetChildObject() private method

private GetChildObject ( ) : ICmObject
return ICmObject
		internal virtual ICmObject GetChildObject()
		{
			LexReferenceTreeRootSlice owningSlice = null;
			for (var parent = Parent; parent != null && owningSlice == null; parent = parent.Parent)
			{
				owningSlice = parent as LexReferenceTreeRootSlice;
			}
			if (owningSlice == null)
				throw new ConfigurationException("LexReferenceTreeRootLauncher must be a child of a LexReferenceTreeRootSlice");
			return owningSlice.ParentSlice.Object;
		}