public ControlVM(ICodeBreakpointsVM vm, CodeBreakpointsOperations operations, IMessageBoxService messageBoxService, DependencyObject control) { VM = vm; Operations = operations; this.messageBoxService = messageBoxService; this.control = control; }
CodeBreakpointsContent(IWpfCommandService wpfCommandService, ICodeBreakpointsVM codeBreakpointsVM, CodeBreakpointsOperations codeBreakpointsOperations, IMessageBoxService messageBoxService) { Operations = codeBreakpointsOperations; codeBreakpointsControl = new CodeBreakpointsControl(); this.codeBreakpointsVM = codeBreakpointsVM; codeBreakpointsControl.DataContext = new ControlVM(codeBreakpointsVM, codeBreakpointsOperations, messageBoxService, codeBreakpointsControl); codeBreakpointsControl.CodeBreakpointsListViewDoubleClick += CodeBreakpointsControl_CodeBreakpointsListViewDoubleClick; wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_CODEBREAKPOINTS_CONTROL, codeBreakpointsControl); wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_CODEBREAKPOINTS_LISTVIEW, codeBreakpointsControl.ListView); codeBreakpointsControl.ListView.PreviewKeyDown += ListView_PreviewKeyDown; }
public CodeBreakpointsCtxMenuContext(CodeBreakpointsOperations operations) => Operations = operations;