public ModuleLoadedEventArgs(JModule module) { _module = module; }
private void HandleModuleLoad(Stream stream) { // module load int moduleId = stream.ReadInt32(); string filename = stream.ReadString(); if (filename != null) { Debug.WriteLine(String.Format("Module Loaded ({0}): {1}", moduleId, filename)); var module = new JModule(moduleId, filename); var loaded = ModuleLoaded; if (loaded != null) { loaded(this, new ModuleLoadedEventArgs(module)); } } }