Exemple #1
0
 public void HolesInfoChangeHandler(HolesInfo holesInfo)
 {
     if (holesInfo != null)
     {
         LaserCtrl laserCtrl = controls[0] as LaserCtrl;
         if (laserCtrl != null)
         {
             laserCtrl.UpdateHolesInfo(holesInfo);
         }
     }
 }
Exemple #2
0
 public void HolesNumberSlider(bool isShow)
 {
     if (controls != null && controls.Count > 0)
     {
         LaserCtrl laserCtrl = controls[0] as LaserCtrl;
         if (laserCtrl != null)
         {
             laserCtrl.HolesNumberSlider(isShow);
         }
     }
 }
Exemple #3
0
 public CtrlFactory(ZWPictureBox pictureBox)
 {
     this.pictureBox          = pictureBox;
     this.laserCtrl           = new LaserCtrl(pictureBox);
     this.laserAlignment      = new LaserAlignment(pictureBox);
     this.laserAppearance     = new LaserAppearanceCtrl();
     this.laserHoleSize       = new LaserHoleSize();
     this.statisticsCtrl      = new StatisticsCtrl();
     this.rulerAppearanceCtrl = new RulerAppearanceCtrl();
     this.settingCtrl         = new SettingCtrl(pictureBox);
     serialPortCtrl           = new SerialPortConfigCtrl();
     InitializeHandler();
 }