示例#1
0
		public static string GetDefaultTermGroupName(Template template)
		{
			string startingTermGroupName = "New Tab";
			string termGroupName = startingTermGroupName;
			int counter = 1;
			while (template.TermGroupExists(termGroupName))
			{
				termGroupName = string.Format("{0} {1}", startingTermGroupName, counter++);
			}
			return termGroupName;
		}