private bool CreateLineImagesCallBack(object context) { TreeViewImageGenerator form = new TreeViewImageGenerator(this._treeView); return (UIServiceHelper.ShowDialog(base.Component.Site, form) == DialogResult.OK); }
private void ReduceNode(TreeViewImageGenerator.OctreeNode node, int depth) { ArrayList list = null; if (depth < (this._numBits - 2)) { list = this._levels[depth + 1]; } for (int i = 0; i < 8; i++) { TreeViewImageGenerator.OctreeNode node2 = node[i]; if (node2 != null) { if (depth < (this._numBits - 2)) { this.ReduceNode(node2, depth + 1); } if (list != null) { list.Remove(node2); } if (node2.NodeCount == 0) { this._leafNodes.Remove(node2); } node[i] = null; } this._levels[depth].Remove(node); node.Reduced = true; } }