Displays the contents of memory and allows selection of memory ranges.
Memory that has been identified is colored.

A memory cell is displayed with a one-pixel border on all sides to help present it with selections.

Inheritance: System.Windows.Forms.Control
Exemple #1
0
		public void Setup()
		{
            form = new Form();
            form.Size = new Size(300, 200);
            memctl = new MemoryControl();
            memctl.Dock = DockStyle.Fill;
            form.Controls.Add(memctl);
		}
 Control DumpBytes()
 {
     var mem = new MemoryControl();
     mem.Services = services;
     mem.ProgramImage = new Reko.Core.LoadedImage(Address.Ptr32(0), resource.Bytes);
     mem.ImageMap = mem.ProgramImage.CreateImageMap();
     mem.Architecture = program.Architecture;
     mem.Font = new Font("Lucida Console", 10F); //$TODO: use user preference
     return mem;
 }
Exemple #3
0
 public MemoryControlPainter(MemoryControl ctrl)
 {
     this.ctrl = ctrl;
 }
        Control DumpBytes()
        {
            var mem = new Reko.Core.MemoryArea(Address.Ptr32(0), resource.Bytes);

            var memCtrl = new MemoryControl();
            memCtrl.Services = services;
            memCtrl.SegmentMap = new SegmentMap(
                mem.BaseAddress,
                new ImageSegment("resource", mem, AccessMode.Read));
            memCtrl.Architecture = program.Architecture;
            memCtrl.Font = new Font("Lucida Console", 10F); //$TODO: use user preference
            return memCtrl;
        }
Exemple #5
0
 public MemoryControlPainter(MemoryControl ctrl)
 {
     this.ctrl = ctrl;
 }