public void Visit(SoundPackFile file) { // Raise the FoundSoundPackFile event SoundFileEventArgs <SoundPackFile> args = new SoundFileEventArgs <SoundPackFile>(file, _currentEvent); OnFoundSoundPackFile(args); }
/// <summary> /// Raises the FoundSoundPackFile event. /// </summary> /// <param name="args">The SoundFileEventArgs to pass to handlers.</param> protected void OnFoundSoundPackFile(SoundFileEventArgs <SoundPackFile> args) { if (FoundSoundPackFile != null) { FoundSoundPackFile(this, args); } }