ACAT.Extensions.Default.UI.Dialogs.ACATTryoutForm.TextBoxEntryOnTextChanged C# (CSharp) Method

TextBoxEntryOnTextChanged() private method

Something changed in the text box. Check if the user typed the word successfuly, if so, clear the word and restart animation
private TextBoxEntryOnTextChanged ( object sender, EventArgs eventArgs ) : void
sender object event sender
eventArgs EventArgs event arg
return void
        private void TextBoxEntryOnTextChanged(object sender, EventArgs eventArgs)
        {
            var str = textBoxEntry.Text.Trim();
            if (string.Compare(str, labelTryWord.Text, true) == 0)
            {
                _dialogCommon.GetAnimationManager().Pause();

                Opacity = 0.75f;
                DialogUtils.Toast(Resources.Good, 500);
                Opacity = 1.0f;

                clearTextBox();

                setNextWord();

                resumeAnimationAsync();
            }
        }