Skip to content

Instantly share code, notes, and snippets.

@mohemohe
Last active December 31, 2015 06:19
Show Gist options
  • Save mohemohe/7947181 to your computer and use it in GitHub Desktop.
Save mohemohe/7947181 to your computer and use it in GitHub Desktop.
notify
public static void RegisterEvent(BackstageEventBase ev)
{
System.Diagnostics.Debug.WriteLine("EVENT: " + ev.Title + " - " + ev.Detail);
EventRegistered.SafeInvoke(ev);
var tev = ev as TwitterEventBase;
if (tev == null) return;
lock (_twitterEvents.SyncRoot)
{
_twitterEvents.Insert(0, tev);
if (_twitterEvents.Count > TwitterEventMaxHoldCount)
_twitterEvents.RemoveAt(_twitterEvents.Count - 1);
}
// ここから
var sp = new System.Media.SoundPlayer(@"C:\krilenotify.wav");
sp.Play();
// ここまで
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment