private void InitializeComponent(string serviceName) { // Initialize the operating properties for the service. this.CanPauseAndContinue = false; this.CanShutdown = true; this.CanHandleSessionChangeEvent = true; this.ServiceName = serviceName; }