public void HolesInfoChangeHandler(HolesInfo holesInfo) { if (holesInfo != null) { LaserCtrl laserCtrl = controls[0] as LaserCtrl; if (laserCtrl != null) { laserCtrl.UpdateHolesInfo(holesInfo); } } }
public void HolesNumberSlider(bool isShow) { if (controls != null && controls.Count > 0) { LaserCtrl laserCtrl = controls[0] as LaserCtrl; if (laserCtrl != null) { laserCtrl.HolesNumberSlider(isShow); } } }
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(); }