Delete Link Action

This commit is contained in:
Tim Young 2018-05-14 08:16:47 -05:00
parent 76b87b0d18
commit a445ce5bd3

View File

@ -1258,7 +1258,8 @@ namespace EduNetworkBuilder
released = Regex.Replace(released, ".* ", ""); released = Regex.Replace(released, ".* ", "");
if (ItemClickedOn != null) if (ItemClickedOn != null)
{ {
ItemClickedOn.RemoveLinkTo(released); //ItemClickedOn.RemoveLinkTo(released);
NB.DoActionDeleteComponent(ItemClickedOn.GetUniqueIdentifier);
} }
myNetwork.TestForCompletion(true); myNetwork.TestForCompletion(true);
pbNetworkView.Update(); pbNetworkView.Update();
@ -1309,7 +1310,8 @@ namespace EduNetworkBuilder
if (thing.Tag != null) if (thing.Tag != null)
{ {
NetworkLink NL = (NetworkLink)thing.Tag; NetworkLink NL = (NetworkLink)thing.Tag;
myNetwork.RemoveComponent(NL); //myNetwork.RemoveComponent(NL);
NB.DoActionDeleteComponent(NL.GetUniqueIdentifier);
} }
myNetwork.TestForCompletion(true); myNetwork.TestForCompletion(true);
pbNetworkView.Update(); pbNetworkView.Update();