protected override void CreateChildControls()
        {
            this.ddlServices = new ServiceSelector { ID = "ddlServices" };

            var ctlServiceValidator = new StyledCustomValidator();
            ctlServiceValidator.ServerValidate +=
                (s, e) =>
                {
                    e.IsValid = !string.IsNullOrWhiteSpace(this.ddlServices.Value);
                };

            this.chkWaitForStop = new CheckBox
            {
                Text = "Wait until the service stops",
                Checked = true
            };

            this.chkIgnoreAlreadyStoppedError = new CheckBox
            {
                Text = "Do not generate error if service is already stopped",
                Checked = true
            };

            this.Controls.Add(
                new SlimFormField("Service:", this.ddlServices, ctlServiceValidator),
                new SlimFormField(
                    "Options:",
                    new Div(this.chkWaitForStop),
                    new Div(this.chkIgnoreAlreadyStoppedError)
                )
            );
        }
        protected override void CreateChildControls()
        {
            this.ddlServices = new ServiceSelector { ID = "ddlServices" };

            var ctlValidator = new StyledCustomValidator();
            ctlValidator.ServerValidate +=
                (s, e) =>
                {
                    e.IsValid = !string.IsNullOrWhiteSpace(this.ddlServices.Value);
                };

            this.chkErrorIfNotInstalled = new CheckBox
            {
                Text = "Log error if service is not found"
            };

            this.chkStopIfRunning = new CheckBox
            {
                Text = "Stop service if it is running"
            };

            this.Controls.Add(
                new SlimFormField("Service:", this.ddlServices, ctlValidator),
                new SlimFormField(
                    "Options:",
                    new Div(this.chkErrorIfNotInstalled),
                    new Div(this.chkStopIfRunning)
                )
            );
        }
        protected override void CreateChildControls()
        {
            this.ddlServices = new ServiceSelector { ID = "ddlServices" };

            var ctlServiceValidator = new StyledCustomValidator();
            ctlServiceValidator.ServerValidate +=
                (s, e) =>
                {
                    e.IsValid = !string.IsNullOrWhiteSpace(this.ddlServices.Value);
                };

            this.txtArgs = new TextBox
            {
                TextMode = TextBoxMode.MultiLine,
                Rows = 4
            };

            this.chkWaitForStart = new CheckBox
            {
                Text = "Wait until the service starts",
                Checked = true
            };

            this.chkIgnoreAlreadyStartedError = new CheckBox
            {
                Text = "Do not generate an error if service is already running",
                Checked = false
            };

            this.chkTreatStartErrorsAsWarnings = new CheckBox
            {
                Text = "Treat \"unable to start service\" condition as a warning instead of an error",
                Checked = false
            };

            this.Controls.Add(
                new SlimFormField("Service:", this.ddlServices, ctlServiceValidator),
                new SlimFormField("Startup arguments:", this.txtArgs)
                {
                    HelpText = "Enter arguments one per line."
                },
                new SlimFormField(
                    "Options:",
                    new Div(this.chkWaitForStart),
                    new Div(this.chkIgnoreAlreadyStartedError),
                    new Div(this.chkTreatStartErrorsAsWarnings)
                )
            );
        }