Explorar o código

修改提示音进程

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
5e0ce68e86
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      UAS-MES/CustomControl/RichText/RichTextAutoBottom.cs

+ 2 - 1
UAS-MES/CustomControl/RichText/RichTextAutoBottom.cs

@@ -38,13 +38,14 @@ namespace UAS_MES.CustomControl.RichText
             {
                 FileName = Application.StartupPath + @"\Resources\Sound\5185.wav";
                 thread.Start();
-
+                thread = new Thread(PlaySound);
             }
             else if (color == Color.Green && Entity.SystemInf.CheckAudioEnable)
             {
                 //颜色是绿色,进行正确提示音
                 FileName = Application.StartupPath + @"\Resources\Sound\8378.wav";
                 thread.Start();
+                thread = new Thread(PlaySound);
             }
         }