📄 eventplaysound.cs
字号:
using System;
using System.Threading;
using System.Windows.Forms;
using NiceTracker.Libraries;
namespace NiceTracker.Events
{
/// <summary>
/// Summary description for EventPlaySound.
/// </summary>
public class EventPlaySound : EventBase
{
public EventPlaySound()
{
}
public string Filename = "";
public override void Action()
{
if ( !PPCLib.PlaySound( Filename ) )
MessageBox.Show( "Unable to play sound file" );
}
public override void LoadParameters( EventParameters eventParameters )
{
Filename = eventParameters.Get( "Filename" );
}
public override void SaveParameters( EventParameters eventParameters )
{
eventParameters.Set( "Filename", Filename );
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -