private void treeView_ProductInfo_MouseDoubleClick(object sender, MouseEventArgs e) { TreeNode _treeNode = this.treeView_ProductInfo.GetNodeAt(e.Location); this.treeView_ProductInfo.SelectedNode = _treeNode; if (_treeNode != null) { productContrainer.ShowProperty(_treeNode.Text); } }
private void treeView_ProductInfo_MouseDoubleClick(object sender, MouseEventArgs e) { TreeNode _treeNode = this.treeView_ProductInfo.GetNodeAt(e.Location); this.treeView_ProductInfo.SelectedNode = _treeNode; if (_treeNode != null) { //if (_treeNode.Level == 0) // MessageBox.Show("BusModel"); //else // MessageBox.Show("SubModel"); productContrainer.ShowProperty(_treeNode.Text); } }