Пример #1
0
        internal Service()
        {
            InitializeComponent();
            this.CanHandlePowerEvent = false;
            this.CanPauseAndContinue = true;
            this.CanShutdown         = true;
            this.CanStop             = true;

            workerService = new BackgroundWorkerService.Logic.Service();
            SetupAdminAccessPoint();
            SetupWebUI();
        }
Пример #2
0
 public UserInterface(BackgroundWorkerService.Service.Service windowsService, bool exitButtonVisible)
 {
     InitializeComponent();
     this.backgroundWorkerService = windowsService.WorkerService;
     btnForceExit.Visible         = exitButtonVisible;
 }