瀏覽代碼

换提示音

shim 8 年之前
父節點
當前提交
01a3cda05a
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      UAS-MES/CustomControl/RichText/RichTextAutoBottom.cs
  2. 二進制
      UAS-MES/Resources/Sound/69978.wav
  3. 二進制
      UAS-MES/Resources/Sound/8378.wav

+ 4 - 4
UAS-MES/CustomControl/RichText/RichTextAutoBottom.cs

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

二進制
UAS-MES/Resources/Sound/69978.wav


二進制
UAS-MES/Resources/Sound/8378.wav