internal Service() { InitializeComponent(); this.CanHandlePowerEvent = false; this.CanPauseAndContinue = true; this.CanShutdown = true; this.CanStop = true; workerService = new BackgroundWorkerService.Logic.Service(); SetupAdminAccessPoint(); SetupWebUI(); }
public UserInterface(BackgroundWorkerService.Service.Service windowsService, bool exitButtonVisible) { InitializeComponent(); this.backgroundWorkerService = windowsService.WorkerService; btnForceExit.Visible = exitButtonVisible; }