I need to play a sound in certain conditions; i.e when an error or a warning is thrown.
Can I make that in Ax 365 ?
final class REVClass_WHSPack_Extension
{
/// <summary>
/// MEC_EXT-00027_LandedCostChargesAutomation
/// Peiqing Jia on 01/29/2023
/// </summary>
[FormControlEventHandler(formControlStr(WHSPack, ItemId), FormControlEventType::Modified)]
public static void ChangeRequestedBy_OnClicked(FormControl sender, FormControlEventArgs e)
{
InventInventItemSearchResult result = inventItemSearch.search(this.valueStr());
if (!result ||
!result.parmItemId())
{
ret = checkFailed(/@WAX758/);
System.Media.SoundPlayer YourMPlayer;
YourMPlayer= new System.Media.SoundPlayer();
YourMPlayer.set_SoundLocation(https://download01.fangcloud.com/download/a23675d5fba24dbf9d20b50efbf8e629/acfb0471b29cc9eb3bd0f2dd81482dc772eb8aaa36696b11eb50ef4070acae6f/Alarm03.wav/);
YourMPlayer.Play();
}
}