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);//删除左侧树形 } }
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; } }