public ServiceRunner(IDebuggableService service) { InitializeComponent(); _theService = service; ServiceBase winService = _theService as ServiceBase; if (winService != null) Text = winService.ServiceName + " Controler"; Show(); }
public ServiceRunner(IDebuggableService service) { InitializeComponent(); _theService = service; EventLog log = _theService.GetEventLog(); log.EnableRaisingEvents = true; log.EntryWritten += log_EntryWritten; Show(); }
public ServiceRunner(IDebuggableService service) { InitializeComponent(); _theService = service; ServiceBase winService = _theService as ServiceBase; if (winService != null) { Text = winService.ServiceName + " Controler"; } Show(); }
public ServiceRunner(IDebuggableService service) { InitializeComponent(); _theService = service; var winService = _theService as ServiceBase; if (winService != null) { } Show(); Win32.AllocConsole(); }
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(); }