public ControlVM(IExceptionsVM vm, ExceptionsOperations operations, IMessageBoxService messageBoxService, DependencyObject control) { VM = vm; Operations = operations; this.messageBoxService = messageBoxService; this.control = control; }
ExceptionsContent(IWpfCommandService wpfCommandService, IExceptionsVM exceptionsVM, ExceptionsOperations exceptionsOperations, Lazy <DbgExceptionSettingsService> dbgExceptionSettingsService, IMessageBoxService messageBoxService) { Operations = exceptionsOperations; exceptionsControl = new ExceptionsControl(); var addVM = new AddExceptionVM(dbgExceptionSettingsService); exceptionsControl.addExceptionControl.DataContext = addVM; exceptionsControl.addExceptionControl.IsVisibleChanged += AddExceptionControl_IsVisibleChanged; exceptionsControl.addExceptionControl.InputBindings.Add(new KeyBinding(addVM.SaveCommand, Key.Enter, ModifierKeys.None)); exceptionsControl.addExceptionControl.InputBindings.Add(new KeyBinding(new RelayCommand(a => exceptionsVM.IsAddingExceptions = false), Key.Escape, ModifierKeys.None)); this.exceptionsVM = exceptionsVM; exceptionsControl.DataContext = new ControlVM(exceptionsVM, exceptionsOperations, messageBoxService, exceptionsControl); exceptionsControl.ExceptionsListViewDoubleClick += ExceptionsControl_ExceptionsListViewDoubleClick; wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_EXCEPTIONS_CONTROL, exceptionsControl); wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_EXCEPTIONS_LISTVIEW, exceptionsControl.ListView); }
public ExceptionsCtxMenuContext(IExceptionsVM vm, ExceptionVM[] selItems) { this.VM = vm; this.SelectedItems = selItems; }
ExceptionsOperationsImpl(IAppWindow appWindow, IExceptionsVM exceptionsVM, Lazy <DbgExceptionSettingsService> dbgExceptionSettingsService) { this.appWindow = appWindow; this.exceptionsVM = exceptionsVM; this.dbgExceptionSettingsService = dbgExceptionSettingsService; }