Add NB.DoActions functions for Replace, ReplaceUPS, and PowerOff
This commit is contained in:
parent
291f1d0b1c
commit
136b7b1ab7
@ -1506,7 +1506,36 @@ namespace EduNetworkBuilder
|
||||
RegisterAction(AC);
|
||||
|
||||
AC.DoAction();
|
||||
}
|
||||
public static void DoActionReplaceDevice(int HostID)
|
||||
{
|
||||
ActionClass AC = new ActionClass();
|
||||
AC.Action = NBAction.replace;
|
||||
AC.SourceID = HostID;
|
||||
|
||||
RegisterAction(AC);
|
||||
|
||||
AC.DoAction();
|
||||
}
|
||||
public static void DoActionReplaceDeviceUPS(int HostID)
|
||||
{
|
||||
ActionClass AC = new ActionClass();
|
||||
AC.Action = NBAction.replaceUPS;
|
||||
AC.SourceID = HostID;
|
||||
|
||||
RegisterAction(AC);
|
||||
|
||||
AC.DoAction();
|
||||
}
|
||||
public static void DoActionPowerOff(int HostID)
|
||||
{
|
||||
ActionClass AC = new ActionClass();
|
||||
AC.Action = NBAction.poweroff;
|
||||
AC.SourceID = HostID;
|
||||
|
||||
RegisterAction(AC);
|
||||
|
||||
AC.DoAction();
|
||||
}
|
||||
public static void DoActionDeleteComponent(int HostID)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user