Raplce UPS action
This commit is contained in:
parent
f5110e542d
commit
1007492961
@ -263,6 +263,7 @@ namespace EduNetworkBuilder
|
||||
case NBAction.replace:
|
||||
break;
|
||||
case NBAction.replaceUPS:
|
||||
myNet.RegisterUPSAdded(source.hostname);
|
||||
break;
|
||||
case NBAction.poweroff:
|
||||
source.PowerOff = true;
|
||||
@ -270,6 +271,7 @@ namespace EduNetworkBuilder
|
||||
break;
|
||||
case NBAction.poweron:
|
||||
source.PowerOff = false;
|
||||
//We might see about exploding the device here.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1214,11 +1214,12 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
if (ItemClickedOn == null) return;
|
||||
//Changing a UPS makes sure the power is off when done.
|
||||
ItemClickedOn.PowerOff = true;
|
||||
//ItemClickedOn.PowerOff = true;
|
||||
NB.DoActionPowerOff(ItemClickedOn.GetUniqueIdentifier);
|
||||
//Mark the replace test as "done"
|
||||
myNetwork.RegisterDeviceReset(ItemClickedOn.hostname); //replacing something powers it off
|
||||
|
||||
myNetwork.RegisterUPSAdded(ItemClickedOn.hostname); //Add the UPS.
|
||||
//myNetwork.RegisterDeviceReset(ItemClickedOn.hostname); //replacing something powers it off
|
||||
NB.DoActionReplaceDeviceUPS(ItemClickedOn.GetUniqueIdentifier);
|
||||
//myNetwork.RegisterUPSAdded(ItemClickedOn.hostname); //Add the UPS.
|
||||
UpdateVisuals();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user