Exemple #1
0
        /// <summary>Adds verbs for which there is a text description within the given range</summary>
        private TreeNode AddKeyVerbs(int first, int last, string folderName, TreeNodeCollection within = null)
        {
            if (within == null)
            {
                within = TV.Nodes;
            }
            TreeNode folder = within.Add(Strings.Item(folderName));

            foreach (Codes verb in Enum.GetValues(typeof(Codes)))
            {
                if (verb != Codes.None && (int)verb >= first && (int)verb <= last && Strings.Exists("Verb_" + verb))
                {
                    AddAction(folder, Verb.Find(verb));
                }
            }
            return(folder);
        }