private void TextBoxAutomaticShoutouts_TextChanged(object sender, EventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (!tb.Focused)
            {
                return;
            }

            var mlc = new MaxLengthChecker();

            if (mlc.GetMaxLength(textBoxAutomaticShoutouts.Text, 60))
            {
                textBoxAutomaticShoutouts.MaxLength = textBoxAutomaticShoutouts.Text.Length;
            }
        }
Exemple #2
0
        private void TextBoxPreviousOwner_TextChanged(object sender, EventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (!tb.Focused)
            {
                return;
            }

            var mlc = new MaxLengthChecker();

            if (mlc.GetMaxLength(textBoxPreviousOwner.Text, 32))
            {
                textBoxPreviousOwner.MaxLength = textBoxPreviousOwner.Text.Length;
            }
        }