internal void OnNodeUpdated(object sender, EventArgs e) { var node = sender as NodeConfig; for (var i = 0; i < Nodes.Count; i++) { var targetNode = Nodes[i]; if (targetNode.Config == node) { Nodes[i] = new NodeMasterViewModel(node); break; } } }