void ModuleLoaded(object sender, ModuleEventArgs e) { DebuggerModuleModel model = new DebuggerModuleModel(e.Module); moduleModels.Add(model); Assemblies.Add(model.AssemblyModel); }
void ModuleUnloaded(object sender, ModuleEventArgs e) { DebuggerModuleModel deletedModel = moduleModels.FirstOrDefault(mm => mm.Module == e.Module); if (deletedModel != null) { moduleModels.Remove(deletedModel); Assemblies.Remove(deletedModel.AssemblyModel); } }
public DebuggerModuleTreeNode(DebuggerModuleModel model) : base(model.AssemblyModel) { this.module = model.Module; }