ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IImageManager imageManager) { this.theDebugger = theDebugger; this.moduleContext = new ModuleContext(imageManager, theDebugger) { SyntaxHighlight = debuggerSettings.SyntaxHighlightModules, UseHexadecimal = debuggerSettings.UseHexadecimal, }; this.modulesList = new ObservableCollection<ModuleVM>(); theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; if (theDebugger.ProcessState != DebuggerProcessState.Terminated) InstallDebuggerHooks(theDebugger.Debugger); }
ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.theDebugger = theDebugger; moduleContext = new ModuleContext(theDebugger, classificationFormatMap, textElementProvider) { SyntaxHighlight = debuggerSettings.SyntaxHighlightModules, UseHexadecimal = debuggerSettings.UseHexadecimal, }; modulesList = new ObservableCollection<ModuleVM>(); theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; if (theDebugger.ProcessState != DebuggerProcessState.Terminated) InstallDebuggerHooks(theDebugger.Debugger); }