change device ( action) when edited.

This commit is contained in:
Tim Young 2018-05-14 15:13:53 -05:00
parent 13557c743f
commit 074d6c22c5

View File

@ -1353,8 +1353,11 @@ namespace EduNetworkBuilder
return; return;
if (ItemClickedOn != null) if (ItemClickedOn != null)
{ {
NetworkDevice oldND = NetworkDevice.Clone(ItemClickedOn);
DeviceConfig editwindow = new DeviceConfig(ItemClickedOn); DeviceConfig editwindow = new DeviceConfig(ItemClickedOn);
editwindow.ShowDialog(); editwindow.ShowDialog();
if (!ItemClickedOn.Equals(oldND))
NB.DoActionChangeComponent(ItemClickedOn);
} }
UpdateLinks(); UpdateLinks();
myNetwork.TestForCompletion(true); myNetwork.TestForCompletion(true);