Delete Link Action
This commit is contained in:
parent
76b87b0d18
commit
a445ce5bd3
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user