SIL.FieldWorks.Common.Controls.ObjectListPublisher.SetOwningPropInfo C# (CSharp) Method

SetOwningPropInfo() public method

Set the properties that we will pretend the fake owning property has.
public SetOwningPropInfo ( int destClass, string className, string fieldName ) : void
destClass int
className string
fieldName string
return void
		public void SetOwningPropInfo(int destClass, string className, string fieldName)
		{
			m_owningDestClass = destClass;
			m_owningClassName = className;
			m_owningFieldName = fieldName;
		}

Usage Example

Example #1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Create a view with multiple LexEntry objects.
		/// </summary>
		/// <param name="rghvoEntries"></param>
		/// <param name="cache"></param>
		/// <param name="styleSheet"></param>
		/// <returns></returns>
		/// ------------------------------------------------------------------------------------
		private XmlView CreateSummaryView(List<int> rghvoEntries, FdoCache cache, IVwStylesheet styleSheet)
		{
			// Make a decorator to publish the list of entries as a fake property of the LexDb.
			int kflidEntriesFound = 8999950; // some arbitrary number not conflicting with real flids.
			var sda = new ObjectListPublisher(cache.DomainDataByFlid as ISilDataAccessManaged, kflidEntriesFound);
			int hvoRoot = RootHvo;
			sda.CacheVecProp(hvoRoot, rghvoEntries.ToArray());
			//TODO: Make this method return a GeckoBrowser control, and generate the content here.
			// The name of this property must match the property used by the publishFound layout.
			sda.SetOwningPropInfo(LexDbTags.kflidClass, "LexDb", "EntriesFound");

			// Make an XmlView which displays that object using the specified layout.
			XmlView xv = new XmlView(hvoRoot, "publishFound", null, false, sda);
			xv.Cache = cache;
			xv.Mediator = m_mediator;
			xv.StyleSheet = styleSheet;
			return xv;
		}
All Usage Examples Of SIL.FieldWorks.Common.Controls.ObjectListPublisher::SetOwningPropInfo