Get multi-device drag to use ActionClass

This commit is contained in:
Tim Young 2018-05-04 12:08:56 -05:00
parent 90788964c9
commit 2890c25083

View File

@ -1579,6 +1579,11 @@ namespace EduNetworkBuilder
{ {
//We were dragging stuff. All done now //We were dragging stuff. All done now
MouseIsDown = false; MouseIsDown = false;
foreach (NetworkDevice nd in ItemsSelected)
{
//Do an action move to the new location.
NB.DoActionMoveDevice(nd.GetUniqueIdentifier, nd.myLocation());
}
ItemsSelected.Clear(); //clear it so we stop moving these ones ItemsSelected.Clear(); //clear it so we stop moving these ones
UpdateLinks(); UpdateLinks();
UpdateVisuals(); UpdateVisuals();