Last active
December 31, 2015 06:19
-
-
Save mohemohe/7947181 to your computer and use it in GitHub Desktop.
notify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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