示例#1
0
        private static string GetSoundFilePath(NotifySoundType type)
        {
            string file;

            switch (type)
            {
            case NotifySoundType.New:
                file = App.NewReceiveWavFile;
                break;

            case NotifySoundType.Mention:
                file = App.MentionWavFile;
                break;

            case NotifySoundType.Message:
                file = App.DirectMessageWavFile;
                break;

            case NotifySoundType.Event:
                file = App.EventWavFile;
                break;

            default:
                throw new ArgumentOutOfRangeException("type");
            }
            return(Path.Combine(App.ExeFileDir, App.MediaDirectory, file));
        }
示例#2
0
 private static string GetSoundFilePath(NotifySoundType type)
 {
     string file;
     switch (type)
     {
         case NotifySoundType.New:
             file = App.NewReceiveWavFile;
             break;
         case NotifySoundType.Mention:
             file = App.MentionWavFile;
             break;
         case NotifySoundType.Message:
             file = App.DirectMessageWavFile;
             break;
         case NotifySoundType.Event:
             file = App.EventWavFile;
             break;
         default:
             throw new ArgumentOutOfRangeException("type");
     }
     return Path.Combine(App.ExeFileDir, App.MediaDirectory, file);
 }