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

GetNextUnnamedSlotName() private method

private GetNextUnnamedSlotName ( ) : string
return string
		private string GetNextUnnamedSlotName()
		{
			// get count of how many unnamed slots there are in this pos and its parent
			// append that number plus one to the string table name
			List<int> aiUnnamedSlotValues = GetAllUnnamedSlotValues();
			aiUnnamedSlotValues.Sort();
			int iMax = aiUnnamedSlotValues.Count;
			int iValueToUse = iMax + 1;  // default to the next one
			// find any "holes" in the numbered sequence (in case the user has renamed
			//   one or more of them since the last time we did this)
			for (int i = 0; i < iMax; i++)
			{
				int iValue = i + 1;
				if (aiUnnamedSlotValues[i] != iValue)
				{	// use the value in the "hole"
					iValueToUse = iValue;
					break;
				}
			}
			return m_sUnnamedSlotName + iValueToUse.ToString();
		}
		private List<int> GetAllUnnamedSlotValues()