Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }