public ControlVM(IModuleBreakpointsVM vm, ModuleBreakpointsOperations operations, IMessageBoxService messageBoxService, DependencyObject control) { VM = vm; Operations = operations; this.messageBoxService = messageBoxService; this.control = control; }
ModuleBreakpointsOperationsImpl(IModuleBreakpointsVM moduleBreakpointsVM, DebuggerSettings debuggerSettings, Lazy <DbgModuleBreakpointsService> dbgModuleBreakpointsService, Lazy <ISettingsServiceFactory> settingsServiceFactory, IPickSaveFilename pickSaveFilename, IPickFilename pickFilename, IMessageBoxService messageBoxService) { this.moduleBreakpointsVM = moduleBreakpointsVM; this.debuggerSettings = debuggerSettings; this.dbgModuleBreakpointsService = dbgModuleBreakpointsService; this.settingsServiceFactory = settingsServiceFactory; this.pickSaveFilename = pickSaveFilename; this.pickFilename = pickFilename; this.messageBoxService = messageBoxService; }
ModuleBreakpointsContent(IWpfCommandService wpfCommandService, IModuleBreakpointsVM moduleBreakpointsVM, ModuleBreakpointsOperations moduleBreakpointsOperations, IMessageBoxService messageBoxService) { Operations = moduleBreakpointsOperations; moduleBreakpointsControl = new ModuleBreakpointsControl(); this.moduleBreakpointsVM = moduleBreakpointsVM; moduleBreakpointsControl.DataContext = new ControlVM(moduleBreakpointsVM, moduleBreakpointsOperations, messageBoxService, moduleBreakpointsControl); wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MODULEBREAKPOINTS_CONTROL, moduleBreakpointsControl); wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MODULEBREAKPOINTS_LISTVIEW, moduleBreakpointsControl.ListView); moduleBreakpointsControl.ListView.PreviewKeyDown += ListView_PreviewKeyDown; }