public override void Init() { base.Init(); _processService = GlobalContext.GetServices <IProcessService>().First(); _currentProcessService = GlobalContext.GetServices <ICurrentProcessService>().First(); _backElement = GlobalContext.InitializeEntity(new BackElement()); }
public override void Init() { base.Init(); IElement element = new PowerElement(new Identifier(Id.Value + ".Logoff"), PowerAction.LogOff); AddElement(new Location(1, 1), GlobalContext.InitializeEntity(element)); element = new PowerElement(new Identifier(Id.Value + ".Reboot"), PowerAction.Reboot); AddElement(new Location(2, 1), GlobalContext.InitializeEntity(element)); element = new PowerElement(new Identifier(Id.Value + ".PowerOff"), PowerAction.PowerOff); AddElement(new Location(3, 1), GlobalContext.InitializeEntity(element)); element = new BackElement(); AddElement(new Location(4, 2), GlobalContext.InitializeEntity(element)); }