ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionManager exceptionManager, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName) { this.debuggerSettings = debuggerSettings; this.exceptionManager = exceptionManager; this.exceptionListSettings = exceptionListSettings; this.getNewExceptionName = getNewExceptionName; this.exceptionContext = new ExceptionContext(exceptionManager) { SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions, }; this.exceptionsList = new ObservableCollection <ExceptionVM>(); this.CollectionView = CollectionViewSource.GetDefaultView(exceptionsList); debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; exceptionManager.Changed += ExceptionManager_Changed; InitializeDefaultExceptions(); }
ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionService exceptionService, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.debuggerSettings = debuggerSettings; this.exceptionService = exceptionService; this.exceptionListSettings = exceptionListSettings; this.getNewExceptionName = getNewExceptionName; exceptionContext = new ExceptionContext(exceptionService, classificationFormatMap, textElementProvider) { SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions, }; exceptionsList = new ObservableCollection <ExceptionVM>(); CollectionView = CollectionViewSource.GetDefaultView(exceptionsList); debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; exceptionService.Changed += ExceptionService_Changed; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; InitializeDefaultExceptions(); }
ToggleEnableExceptionsCtxMenuCommand(Lazy <IExceptionsContent> exceptionsContent, IExceptionListSettings exceptionListSettings) : base(exceptionsContent) { this.exceptionListSettings = exceptionListSettings; }
ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionService exceptionService, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.debuggerSettings = debuggerSettings; this.exceptionService = exceptionService; this.exceptionListSettings = exceptionListSettings; this.getNewExceptionName = getNewExceptionName; exceptionContext = new ExceptionContext(exceptionService, classificationFormatMap, textElementProvider) { SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions, }; exceptionsList = new ObservableCollection<ExceptionVM>(); CollectionView = CollectionViewSource.GetDefaultView(exceptionsList); debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; exceptionService.Changed += ExceptionService_Changed; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; InitializeDefaultExceptions(); }
ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionManager exceptionManager, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName) { this.debuggerSettings = debuggerSettings; this.exceptionManager = exceptionManager; this.exceptionListSettings = exceptionListSettings; this.getNewExceptionName = getNewExceptionName; this.exceptionContext = new ExceptionContext(exceptionManager) { SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions, }; this.exceptionsList = new ObservableCollection<ExceptionVM>(); this.collectionView = CollectionViewSource.GetDefaultView(exceptionsList); debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; exceptionManager.Changed += ExceptionManager_Changed; InitializeDefaultExceptions(); }