private void DuplicateDataSource(BindableTreeNode dataSourceNode) { IDataSource dataSource = (IDataSource)dataSourceNode.DataSource; IDataSource dataSourceClone = dataSource.Clone(true); AddDataSource(dataSourceClone, (BindableTreeNode)dataSourceNode.Parent, dataSourceNode.Index + 1); dataSourceTreeView.SelectedNode = dataSourceTreeView.Find(dataSourceClone.ID); }