public static string IDEEventTypeToSoundPath(IDEEventType iDEEventType)
        {
            string path = string.Empty;

            switch (iDEEventType)
            {
            case IDEEventType.Unknown:
                path = "ohno!";
                break;

            default:
                path = iDEEventType.ToString();
                break;
            }
            return(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Audio", $"{path}.wav"));
        }
Exemple #2
0
 private IDEEventSourceType GetIDEEventSource(IDEEventType iDEEventType)
 {
     return(typeof(IDEEventType).GetMember(iDEEventType.ToString())
            .First()
            .GetCustomAttribute <IDEEventSourceAttribute>().IDEEventSourceType);
 }