Наследование: System.Windows.Forms.Form
Пример #1
0
        private void byteMapViewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            byte[] buf  = GenerateImageData();
            var    mem  = new MemoryArea(Address.Ptr32(0x0040000), buf);
            var    dlg  = new ByteMapDialog();
            var    ctrl = new ByteMapView();

            dlg.Controls.Add(ctrl);
            ctrl.Dock       = DockStyle.Fill;
            ctrl.SegmentMap = new SegmentMap(Address.Ptr32(0x0040000),
                                             new ImageSegment("foo", mem, AccessMode.ReadWriteExecute));
            dlg.ShowDialog();
        }
Пример #2
0
 private void byteMapViewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     byte[] buf = GenerateImageData();
     var mem = new MemoryArea(Address.Ptr32(0x0040000), buf);
     var dlg = new ByteMapDialog();
     var ctrl = new ByteMapView();
     dlg.Controls.Add(ctrl);
     ctrl.Dock = DockStyle.Fill;
     ctrl.SegmentMap = new SegmentMap(Address.Ptr32(0x0040000),
         new ImageSegment("foo", mem, AccessMode.ReadWriteExecute));
     dlg.ShowDialog();
 }