private void Select(TreeNode treeNode) { if (mTreeView.SelectedNode != treeNode) { // See comment above about why we have to manually raise the AfterClick mTreeView.SelectedNode = treeNode; if (treeNode != null) { treeNode.EnsureVisible(); } mTreeView.CallAfterClickSelect(null, new TreeViewEventArgs(treeNode)); } }
private void Select(TreeNode treeNode) { if (mTreeView.SelectedNode != treeNode) { // See comment above about why we have to manually raise the AfterClick mTreeView.SelectedNode = treeNode; if (treeNode != null) { treeNode.EnsureVisible(); } mTreeView.CallAfterClickSelect(null, new TreeViewEventArgs(treeNode)); } ProjectVerifier.Self.AssertSelectedIpsosArePartOfRenderer(); }