public ServiceRunner(IDebuggableService service)
 {
     InitializeComponent();
     _theService = service;
     ServiceBase winService = _theService as ServiceBase;
     if (winService != null) Text = winService.ServiceName + " Controler";
     Show();
 }
Exemplo n.º 2
0
        public ServiceRunner(IDebuggableService service)
        {
            InitializeComponent();
            _theService = service;
            EventLog log = _theService.GetEventLog();

            log.EnableRaisingEvents = true;
            log.EntryWritten       += log_EntryWritten;
            Show();
        }
Exemplo n.º 3
0
        public ServiceRunner(IDebuggableService service)
        {
            InitializeComponent();
            _theService = service;
            ServiceBase winService = _theService as ServiceBase;

            if (winService != null)
            {
                Text = winService.ServiceName + " Controler";
            }
            Show();
        }
Exemplo n.º 4
0
        public ServiceRunner(IDebuggableService service)
        {
            InitializeComponent();
            _theService = service;
            var winService = _theService as ServiceBase;

            if (winService != null)
            {
            }
            Show();
            Win32.AllocConsole();
        }
Exemplo n.º 5
0
 public ServiceRunner(IDebuggableService service)
 {
     InitializeComponent();
     _theService = service;
     winService  = _theService as ServiceBase;
     if (winService == null)
     {
         throw new ArgumentException("{0} is not a ServiceBase class", "service");
     }
     pauseButton.Enabled = continueButton.Enabled = winService.CanPauseAndContinue;
     Text = winService.ServiceName + " Controler";
     Show();
 }