private ModelUICache(ModelTreeControl tc, Canvas treeCanvas, TreeModel treeRoot, Root dataRoot) { TC = tc; DataRoot = dataRoot; TreeRoot = treeRoot; TreeCanvas = treeCanvas; }
internal static void Allocate(ModelTreeControl tc, Canvas treeCanvas, TreeModel treeRoot, Root dataRoot, int count, Stack <ModelUICache> stack) { for (int i = 0; i < count; i++) { stack.Push(new ModelUICache(tc, treeCanvas, treeRoot, dataRoot)); } }