博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
listSelectObjects
阅读量:4970 次
发布时间:2019-06-12

本文共 474 字,大约阅读时间需要 1 分钟。

this.listSelectObjects.Clear();

            foreach (var item in TradeModelManager.Instance.DescriptolList)
            {
                this.listSelectObjects.Add(new SelectObject(item.Name,item));
            }

            TreeNode node = this.SelectedItem as TreeNode;

            if (node!=null)
            {
                bool flag = false;
                foreach (var item in TradeModelManager.Instance.DescriptolList)
                {
                    if (item==node.Tag)
                    {
                        flag = true;
                        break;
                    }
                }

                if (!flag)

                {
                    this.SelectedItem = null;
                }
            }

转载于:https://www.cnblogs.com/ganquanfu2008/archive/2013/05/14/3078345.html

你可能感兴趣的文章