public static void beep(beep_type type) { switch (type) { case beep_type.err: System.Media.SystemSounds.Asterisk.Play(); break; case beep_type.question: System.Media.SystemSounds.Question.Play(); break; default: Debug.Assert(false); break; } }