public void ButtonStateHandler(bool isEnable) { LaserAlignment laserAlignment = controls[5] as LaserAlignment; if (laserAlignment != null) { laserAlignment.ButtonNext(isEnable); } }
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(); }
public AlignInfoHelper(LaserAlignment laserAlignment) { this.laserAlignment = laserAlignment; }