protected virtual void OnModuleUnloaded(ModuleUnloadedEventArgs e) { var handler = ModuleUnloaded; if (handler != null) { handler(this, e); } }
private void ModuleManagerOnModuleUnloaded(object sender, ModuleUnloadedEventArgs args) { _moduleCommands.Remove(args.Module.Name); }
public void GivenAModuleManager() { ModuleManager = new ModuleManager(); ModuleManager.ModuleLoaded += (sender, args) => { ModuleLoadedEventArgs = args; }; ModuleManager.ModuleUnloaded += (sender, args) => { ModuleUnloadedEventArgs = args; }; }