Get dragging of one item to work through the ActionClass
This commit is contained in:
parent
51087c1119
commit
90788964c9
@ -127,7 +127,11 @@ namespace EduNetworkBuilder
|
||||
case NBAction.changedevice:
|
||||
break;
|
||||
case NBAction.changelocation:
|
||||
if (source != null) source.ChangeLocation(Location);
|
||||
if (source != null)
|
||||
{
|
||||
source.ChangeLocation(Location);
|
||||
source.UnHide(); //In case it was hidden
|
||||
}
|
||||
break;
|
||||
case NBAction.deletecomponent:
|
||||
break;
|
||||
|
@ -1742,8 +1742,9 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
if (!ItemClickedOn.IsLockedInLocation())
|
||||
{
|
||||
ItemClickedOn.ChangeLocation(CenteredLocation);
|
||||
ItemClickedOn.UnHide(); //If it was hidden, unhide it
|
||||
//ItemClickedOn.ChangeLocation(CenteredLocation);
|
||||
//ItemClickedOn.UnHide(); //If it was hidden, unhide it
|
||||
NB.DoActionMoveDevice(ItemClickedOn.GetUniqueIdentifier, CenteredLocation);
|
||||
UpdateLinks();
|
||||
UpdateVisuals();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user