diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 53a11a0..1a0ecaa 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -1258,7 +1258,8 @@ namespace EduNetworkBuilder released = Regex.Replace(released, ".* ", ""); if (ItemClickedOn != null) { - ItemClickedOn.RemoveLinkTo(released); + //ItemClickedOn.RemoveLinkTo(released); + NB.DoActionDeleteComponent(ItemClickedOn.GetUniqueIdentifier); } myNetwork.TestForCompletion(true); pbNetworkView.Update(); @@ -1309,7 +1310,8 @@ namespace EduNetworkBuilder if (thing.Tag != null) { NetworkLink NL = (NetworkLink)thing.Tag; - myNetwork.RemoveComponent(NL); + //myNetwork.RemoveComponent(NL); + NB.DoActionDeleteComponent(NL.GetUniqueIdentifier); } myNetwork.TestForCompletion(true); pbNetworkView.Update();