RegisterTextBox() public method

public RegisterTextBox ( TextBox textBox ) : void
textBox System.Windows.Forms.TextBox
return void
        /// <summary>
        /// Demo how an integration could deal with a dynamic set of controls as source for a check request.
        /// </summary>
        private void addTextSnippet()
        {
            TextBox newTextBox = new TextBox();

            newTextBox.Multiline = true;

            newTextBox.ScrollBars = ScrollBars.Both;
            newTextBox.Height     = 50;
            newTextBox.Dock       = DockStyle.Fill;

            newTextBox.Text = topspin[this.panelContent.Controls.Count % topspin.Length].Replace("\n", System.Environment.NewLine);

            this.panelContent.Controls.Add(newTextBox);

            integration.RegisterTextBox(newTextBox);
        }