private static string _FormatText(string str, bool withEllipsis, bool withColon, char accelerator) { if (str == null) { return(str); } if (accelerator > 0) { str = ST.AddAccelerator(str, accelerator); } if (withEllipsis) { str += "..."; } if (withColon) { str += ":"; } return(str); }