From a445ce5bd39c32df34124329ebfaddf3cc660558 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 14 May 2018 08:16:47 -0500 Subject: [PATCH] Delete Link Action --- EduNetworkBuilder/NetworkBuilder.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();