public static void RegisterTree(BTTree tree) { if (!trees.Contains(tree)) { trees.Add(tree); } }
public static void RemoveTree(BTTree tree) { int index = trees.IndexOf(tree); if (index >= 0) { trees.RemoveAt(index); } }