public override void Execute(ModulesCtxMenuContext context) { var vm = ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context); if (vm != null) { memoryWindowManager.Value.Show(vm.Module.Address, vm.Module.Size); } }
protected override void Execute(ModulesCtxMenuContext context) { var vm = ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context); if (vm != null) { MemoryUtils.ShowInMemoryWindow(vm.Module.Address, vm.Module.Size); } }
public override void Execute(ModulesCtxMenuContext context) { var vm = ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context); if (vm != null) { var start = new HexPosition(vm.Module.Address); var end = start + vm.Module.Size; Debug.Assert(end <= HexPosition.MaxEndPosition); if (end <= HexPosition.MaxEndPosition) { memoryWindowService.Value.Show(HexSpan.FromBounds(start, end)); } } }
public override bool IsEnabled(ModulesCtxMenuContext context) => ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context) != null;
protected override bool IsEnabled(ModulesCtxMenuContext context) { return(ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context) != null); }