Beispiel #1
0
        private void Provider16_OnPlaying(string text, int charIndex)
        {
            Debug.WriteLine($"正在播第{charIndex}个字符");

            this.Invoke(new Action(() =>
            {
                Txt1.Select(charIndex, 1);
                Txt1.Focus();
                LblPlayingTip.Text = $"正在播第{charIndex}个字符";
            }));
        }
Beispiel #2
0
 private void WaveOut_PlaybackStopped(object sender, StoppedEventArgs e)
 {
     LblPlayingTip.Text = $"播放完毕";
     Txt1.Select(Txt1.Text.Length, 1);
 }