示例#1
0
        public override void Execute(ModulesCtxMenuContext context)
        {
            var vm = ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context);

            if (vm != null)
            {
                memoryWindowManager.Value.Show(vm.Module.Address, vm.Module.Size);
            }
        }
示例#2
0
        protected override void Execute(ModulesCtxMenuContext context)
        {
            var vm = ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context);

            if (vm != null)
            {
                MemoryUtils.ShowInMemoryWindow(vm.Module.Address, vm.Module.Size);
            }
        }
示例#3
0
        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));
                }
            }
        }
示例#4
0
 public override bool IsEnabled(ModulesCtxMenuContext context) => ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context) != null;
示例#5
0
 protected override bool IsEnabled(ModulesCtxMenuContext context)
 {
     return(ShowInMemoryWindowModulesCtxMenuCommand.GetModule(context) != null);
 }