示例#1
0
 private void RemoveTreeNode(ProductParameter model)
 {
     if (ModelTrees.Any(x => x.id == model.id))
     {
         var node = ModelTrees.FirstOrDefault(x => x.id == model.id);
         ModelTrees.Remove(node);//删除左侧树形
     }
 }
示例#2
0
 private void UpdateTreeNode(ProductParameter model)
 {
     if (ModelTrees.Any(x => x.id == model.id))
     {
         var node = ModelTrees.FirstOrDefault(x => x.id == model.id);
         node.Name        = model.product_name;
         node.DisplayName = model.product_name;
     }
 }