public static string GetGoodString(string strSource, int maxLength) { if (StringTool.GetLength(strSource) > maxLength) { return(StringTool.GetSubString(strSource, maxLength, "")); } return(strSource); }
public static string GetGoodStringByOther(string strScoure, string strOther, int maxTotal) { return(GetGoodString(strScoure, maxTotal - StringTool.GetLength(strOther))); }