public LaserFactory(ZWPictureBox picturebox) { this.picturebox = picturebox; this.fixedLaser = new FixedLaser(picturebox); this.activeLaser = new ActiveLaser(picturebox); this.alignLaser = new AlignLaser(picturebox); alignLaser.ZoomHandler += picturebox.ZoomHandler; alignLaser.ButtonStateHandler += picturebox.ButtonStateHandler; }
public LaserFactory(RichPictureBox richPictureBox) { this.richPictureBox = richPictureBox; this.fixedLaser = new FixedLaser(richPictureBox); this.activeLaser = new ActiveLaser(richPictureBox); this.alignLaser = new AlignLaser(richPictureBox); this.alignLaser.ZoomHandler += richPictureBox.ZoomHandler; alignLaser.ButtonStateHandler += Program.EntryForm.ButtonStateHandler; }