/// <summary> /// Removes the project node. /// </summary> public void RemoveProjectNode(TestProjectTreeNode node) { if (Nodes.Contains(node)) { node.ImageIndexChanged -= TestProjectTreeNodeImageIndexChanged; node.Remove(); } }
/// <summary> /// Removes the project node from the tree. /// </summary> void RemoveProjectNode(TestProjectTreeNode projectNode) { if (projectNode != null) { if (allTestsNode != null) { allTestsNode.RemoveProjectNode(projectNode); } else { projectNode.Remove(); } } }