public void Attach(OverlayPaintArea surface) { if (this.surface != null) { this.surface.ctrls = null; } this.surface = surface; this.surface.ctrls = this; pen1Btn.Image = penImageFromInfo((penInfo)pen1Btn.data); pen2Btn.Image = penImageFromInfo((penInfo)pen2Btn.data); pen3Btn.Image = penImageFromInfo((penInfo)pen3Btn.data); pen4Btn.Image = penImageFromInfo((penInfo)pen4Btn.data); pen5Btn.Image = penImageFromInfo((penInfo)pen5Btn.data); pen6Btn.Image = penImageFromInfo((penInfo)pen6Btn.data); pen7Btn.Image = penImageFromInfo((penInfo)pen7Btn.data); penInfo p = (penInfo)pen1Btn.data; this.surface.setPen(p.size, p.color, p.type); onLayersChanged(null, null); surface.onLayersChanged = new EventHandler(onLayersChanged); //updateCurrentPenImage(); }
public TabletLaunch(OverlayPaintArea opa) { pa = opa; textBox1 = null; capturing = false; }
public TabletLaunch(OverlayPaintArea opa, TextBox tb) { pa = opa; textBox1 = tb; capturing = false; }