public HexCommandOperationsImpl(IMessageBoxService messageBoxService, HexEditorGroupFactoryService hexEditorGroupFactoryService, HexView hexView) { if (messageBoxService == null) { throw new ArgumentNullException(nameof(messageBoxService)); } if (hexEditorGroupFactoryService == null) { throw new ArgumentNullException(nameof(hexEditorGroupFactoryService)); } if (hexView == null) { throw new ArgumentNullException(nameof(hexView)); } this.messageBoxService = messageBoxService; this.hexEditorGroupFactoryService = hexEditorGroupFactoryService; HexView = hexView; hexView.Closed += HexView_Closed; }
public MemoryContent(IWpfCommandService wpfCommandService, IMemoryVM memoryVM, HexEditorGroupFactoryService hexEditorGroupFactoryService) { vmMemory = memoryVM; memoryVM.UnderlyingStreamChanged += MemoryVM_UnderlyingStreamChanged; hexViewHost = hexEditorGroupFactoryService.Create(memoryVM.Buffer, PredefinedHexViewRoles.HexEditorGroup, PredefinedHexViewRoles.HexEditorGroupDebuggerMemory, new Guid(MenuConstants.GUIDOBJ_DEBUGGER_MEMORY_HEXVIEW_GUID)); memoryControl = new MemoryControl(hexViewHost.HostControl); memoryControl.DataContext = vmMemory; wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MEMORY_CONTROL, memoryControl); wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MEMORY_WPFHEXVIEWHOST, hexViewHost.HostControl); }
public HexViewDocumentTabUIContext(HexEditorGroupFactoryService hexEditorGroupFactoryService, HexBuffer buffer) => hexViewHost = hexEditorGroupFactoryService.Create(buffer, PredefinedHexViewRoles.HexEditorGroup, PredefinedHexViewRoles.HexEditorGroupDefault, new Guid(MenuConstants.GUIDOBJ_ASMEDITOR_HEXVIEW_GUID));
public MemoryContent(IWpfCommandService wpfCommandService, IMemoryVM memoryVM, ProcessHexBufferProvider processHexBufferProvider, HexEditorGroupFactoryService hexEditorGroupFactoryService) { this.memoryVM = memoryVM; hexBufferInfo = processHexBufferProvider.CreateBuffer(); hexBufferInfo.UnderlyingStreamChanged += HexBufferInfo_UnderlyingStreamChanged; hexViewHost = hexEditorGroupFactoryService.Create(hexBufferInfo.Buffer, PredefinedHexViewRoles.HexEditorGroup, PredefinedHexViewRoles.HexEditorGroupDebuggerMemory, new Guid(MenuConstants.GUIDOBJ_DEBUGGER_MEMORY_HEXVIEW_GUID)); memoryControl = new MemoryControl(hexViewHost.HostControl); memoryControl.DataContext = memoryVM; wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MEMORY_CONTROL, memoryControl); wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MEMORY_WPFHEXVIEWHOST, hexViewHost.HostControl); }
HexCommandOperationsFactoryServiceImpl(IMessageBoxService messageBoxService, HexEditorGroupFactoryService hexEditorGroupFactoryService) { this.messageBoxService = messageBoxService; this.hexEditorGroupFactoryService = hexEditorGroupFactoryService; }