SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateControl.DetermineSlotContextMenuItemLabel C# (CSharp) Method

DetermineSlotContextMenuItemLabel() private method

private DetermineSlotContextMenuItemLabel ( string sLabel ) : ITsString
sLabel string
return ITsString
		internal ITsString DetermineSlotContextMenuItemLabel(string sLabel)
		{
			CheckDisposed();
			if (m_obj.ClassID == MoInflAffixSlotTags.kClassId)
			{
				return DoXXXReplace(sLabel, TsSlotName(m_obj as IMoInflAffixSlot));
			}
			else if (m_obj.ClassID == MoInflAffixTemplateTags.kClassId)
			{
				var tssStem = Cache.TsStrFactory.MakeString(m_sStem, Cache.DefaultUserWs);
				return DoXXXReplace(sLabel, tssStem);
			}
			else
			{
				return null;
			}
		}