public ControlVM(IModuleBreakpointsVM vm, ModuleBreakpointsOperations operations, IMessageBoxService messageBoxService, DependencyObject control) { VM = vm; Operations = operations; this.messageBoxService = messageBoxService; this.control = control; }
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; }
public ModuleBreakpointsCtxMenuContext(ModuleBreakpointsOperations operations) => Operations = operations;