public void PlayResource(string resource) { Stream stream = Assembly.GetEntryAssembly().GetManifestResourceStream($"{Assembly.GetEntryAssembly().GetName().Name}.{resource}"); soundPlayer.PlayStream(stream); }