예제 #1
0
        /** Label Event Handlers **************************************************/

        protected void CallbackTextBoxLabelTextChanged(object sender, EventArgs e)
        {
            TextBox TextBoxObject = ( TextBox )sender;
            bool    IsValid       = false;

            TextBoxObject.Text = MacroscopeStringTools.StripNewLines(Text: TextBoxObject.Text);

            IsValid = this.ValidateLabel(TextBoxObject: TextBoxObject, ShowErrorDialogue: false);

            if (IsValid)
            {
                TextBoxObject.ForeColor = Color.Green;
            }
            else
            {
                TextBoxObject.ForeColor = Color.Red;
            }
        }