Represents a textbox.
Inheritance: ViewBase
        public void ClassInitialize()
        {
            // Setup initial conditions.
            textbox = new Textbox();
            TestHarness.AddControl(textbox);
            textbox.UpdateLayout();

            textbox.Width = 250;
            textbox.Height = 40;

            // Wire up events.
            textbox.TextChanged += delegate { Log.Event("TextChanged | Text: " + textbox.Text); };
            textbox.TextChangedDelay += delegate { Log.Event("TextChangedDelay | Text: " + textbox.Text); };
            textbox.EnterPress += delegate { Log.Event("EnterPress"); };

            // Finish up.
            Change_Text();
            Toggle__LeftIcon();
        }
        private Textbox InitializeTextbox(string selector, string icon)
        {
            // Create and insert the textbox.
            Textbox textbox = new Textbox();
            textbox.Padding.Change(10, 5);
            textbox.LeftIcon = Helper.Url.PrependDomain(icon);
            textbox.Insert(selector, InsertMode.Replace);

            // Wire up events.
            textbox.TextChanged += delegate { UpdateState(); };
            textbox.EnterPress += delegate { AddButton.InvokeClick(false); };

            // Finish up.
            return textbox;
        }
 private void InitializeTextboxes()
 {
     txtScriptUrl = InitializeTextbox(CssSelectors.AddPackageTxtScript, IconJs);
     txtInitMethod = InitializeTextbox(CssSelectors.AddPackageTxtMethod, IconMethod);
 }