ACAT.Extensions.Default.FunctionalAgents.LectureManager.LectureManagerMainForm.gotoNextSentence C# (CSharp) Method

gotoNextSentence() private method

Goes to the next sentence
private gotoNextSentence ( ) : void
return void
        private void gotoNextSentence()
        {
            var sentence = getNextSentence();
            if (sentence != null)
            {
                setCaretPosAndSelect(sentence.Start, sentence.Length);
            }
            else if (textBox1.Text.Length > 0)
            {
                setCaretPosAndSelect(textBox1.Text.Length);
            }
        }