PurplePen.CustomSymbolText.SetTextBox C# (CSharp) Méthode

SetTextBox() private méthode

private SetTextBox ( List texts ) : void
texts List
Résultat void
        void SetTextBox(List<SymbolText> texts)
        {
            string langId = LangId;

            List<string> l = new List<string>();
            foreach (SymbolText symtext in texts) {
                if (symtext.Lang == langId && !l.Contains(symtext.Text)) {
                    string s = symtext.Text;
                    if (!useAsLocalizeTool)
                        s = s.Replace("{0}", "*");
                    l.Add(s);
                }
            }

            StringBuilder builder = new StringBuilder();
            foreach (string s in l) {
                if (builder.Length > 0)
                    builder.Append("/");
                builder.Append(s);
            }

            textBoxCurrent.Text = builder.ToString();
        }