예제 #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}个字符";
            }));
        }
예제 #2
0
 private void BtnHps_Click(object sender, EventArgs e)
 {
     Txt1.Clear();
     Txt2.Clear();
     TxtHsl.Clear();
 }
예제 #3
0
 private void WaveOut_PlaybackStopped(object sender, StoppedEventArgs e)
 {
     LblPlayingTip.Text = $"播放完毕";
     Txt1.Select(Txt1.Text.Length, 1);
 }
예제 #4
0
파일: Form1.cs 프로젝트: hrgell/Recycle
 private void Debug(string msg)
 {
     //Txt1.Text += msg + Environment.NewLine;
     Txt1.AppendText(msg + Environment.NewLine);
 }