Ejemplo n.º 1
0
 private void EditDeclaration()
 {
     var addr = GetAnchorAddress();
     if (addr == null)
         return;
     var anchorPt = FocusedTextView.GetAnchorTopPoint();
     var screenPoint = FocusedTextView.PointToScreen(anchorPt);
     declarationFormInteractor.Show(screenPoint, program, addr);
 }
Ejemplo n.º 2
0
        private void EditDeclaration()
        {
            var          addr = combinedCodeView.MixedCodeDataView.GetAnchorAddress();
            ImageMapItem item;

            if (program.ImageMap.TryFindItem(addr, out item))
            {
                GlobalDataItem_v2 globalDataItem;
                var blockItem = item as ImageMapBlock;
                if (blockItem != null)
                {
                    addr = program.GetProcedureAddress(blockItem.Block.Procedure);
                }
                else if (!(item.DataType is UnknownType))
                {
                    addr = item.Address;
                }
            }
            var anchorPt    = combinedCodeView.MixedCodeDataView.GetAnchorTopPoint();
            var screenPoint = combinedCodeView.MixedCodeDataView.PointToScreen(anchorPt);

            declarationFormInteractor.Show(screenPoint, program, addr);
        }
Ejemplo n.º 3
0
 private void When_DeclarationFormCreated(uint addr)
 {
     interactor.Show(new Point(0, 0), program, Address32.Ptr32(addr));
 }