public LinePainter(MemoryControlPainter mcp, Graphics g, Rectangle rc, Point ptAddr, bool render) { this.mcp = mcp; this.g = g; this.rc = rc; this.ptAddr = ptAddr; this.render = render; }
public MemoryControl() { mcp = new MemoryControlPainter(this); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); vscroller = new VScrollBar(); vscroller.Dock = DockStyle.Right; Controls.Add(vscroller); vscroller.Scroll += vscroller_Scroll; wordSize = 1; cbRow = 16; }