Example #1
0
 public static void RegisterTree(BTTree tree)
 {
     if (!trees.Contains(tree))
     {
         trees.Add(tree);
     }
 }
Example #2
0
        public static void RemoveTree(BTTree tree)
        {
            int index = trees.IndexOf(tree);

            if (index >= 0)
            {
                trees.RemoveAt(index);
            }
        }