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; } }