示例#1
0
		public static string FormatDisplayTextWithListName(FdoCache cache, Mediator mediator,
			ICmPossibilityList pssl, ref UIItemDisplayProperties display)
		{
			string listName = pssl.Owner != null ? cache.DomainDataByFlid.MetaDataCache.GetFieldName(pssl.OwningFlid) : pssl.Name.BestAnalysisVernacularAlternative.Text;
			string itemTypeName = pssl.ItemsTypeName(mediator.StringTbl);
			if (itemTypeName != "*" + listName + "*")
			{
				string formattedText = String.Format(display.Text, itemTypeName);
				display.Text = formattedText;
			}
			return display.Text;
		}
示例#2
0
		public static string FormatDisplayTextWithListName(FdoCache cache, XCore.Mediator mediator,
			ICmPossibilityList pssl, ref UIItemDisplayProperties display)
		{
			string owningFieldName = cache.MetaDataCacheAccessor.GetFieldName((uint)pssl.OwningFlid);
			string itemTypeName = pssl.ItemsTypeName(mediator.StringTbl);
			if (itemTypeName != "*" + owningFieldName + "*")
			{
				string formattedText = String.Format(display.Text, itemTypeName);
				display.Text = formattedText;
			}
			return display.Text;
		}