private void Provider16_OnPlaying(string text, int charIndex) { Debug.WriteLine($"正在播第{charIndex}个字符"); this.Invoke(new Action(() => { Txt1.Select(charIndex, 1); Txt1.Focus(); LblPlayingTip.Text = $"正在播第{charIndex}个字符"; })); }
private void BtnHps_Click(object sender, EventArgs e) { Txt1.Clear(); Txt2.Clear(); TxtHsl.Clear(); }
private void WaveOut_PlaybackStopped(object sender, StoppedEventArgs e) { LblPlayingTip.Text = $"播放完毕"; Txt1.Select(Txt1.Text.Length, 1); }
private void Debug(string msg) { //Txt1.Text += msg + Environment.NewLine; Txt1.AppendText(msg + Environment.NewLine); }