|
|
@@ -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);
|