示例#1
0
        private string FormatMenuText(string s)
        {
            if (s == null)
            {
                return("    ");
            }

            s = CharacterSet.DBCToSBC(s);

            switch (s.Length)
            {
            case 0:
                return("    ");

            case 1:
                return("   " + s);

            case 2:
                return("  " + s);

            case 3:
                return(" " + s);

            default:
                return(s);
            }
        }