|
@@ -8,6 +8,7 @@ using System.Windows.Forms;
|
|
|
using System.Xml;
|
|
|
using UAS_AutoPass.ToolClass;
|
|
|
using System.Text;
|
|
|
+using System.Media;
|
|
|
|
|
|
namespace UAS_AutoPass
|
|
|
{
|
|
@@ -379,6 +380,7 @@ namespace UAS_AutoPass
|
|
|
OperateResult.AppendText("序列号 " + SN + "已执行过" + istepcode + "\n");
|
|
|
continue;
|
|
|
}
|
|
|
+ SoundPlayer player = new SoundPlayer();
|
|
|
switch (Result)
|
|
|
{
|
|
|
case "OK":
|
|
@@ -389,6 +391,9 @@ namespace UAS_AutoPass
|
|
|
continue;
|
|
|
}
|
|
|
tipform.startthread("序列号 " + SN + "通过检测", Result);
|
|
|
+ player.SoundLocation = Application.StartupPath + @"\8378.wav";
|
|
|
+ player.Load();
|
|
|
+ player.Play();
|
|
|
break;
|
|
|
case "NG":
|
|
|
RecordBadInfo(SN, makecode, FileName, "", badcode.ToArray(), badlocation.ToArray(), badprod.ToArray());
|
|
@@ -400,6 +405,9 @@ namespace UAS_AutoPass
|
|
|
continue;
|
|
|
}
|
|
|
tipform.startthread("序列号 " + SN + "未通过检测", Result);
|
|
|
+ player.SoundLocation = Application.StartupPath + @"\5185.wav";
|
|
|
+ player.Load();
|
|
|
+ player.Play();
|
|
|
break;
|
|
|
default:
|
|
|
break;
|