From 074d6c22c52d82a02682a2c97fea0df50bd00aef Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 14 May 2018 15:13:53 -0500 Subject: [PATCH] change device ( action) when edited. --- EduNetworkBuilder/NetworkBuilder.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 394c854..d41083e 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -1353,8 +1353,11 @@ namespace EduNetworkBuilder return; if (ItemClickedOn != null) { + NetworkDevice oldND = NetworkDevice.Clone(ItemClickedOn); DeviceConfig editwindow = new DeviceConfig(ItemClickedOn); editwindow.ShowDialog(); + if (!ItemClickedOn.Equals(oldND)) + NB.DoActionChangeComponent(ItemClickedOn); } UpdateLinks(); myNetwork.TestForCompletion(true);