public LaserAlignment(ZWPictureBox pictureBox) : base() { resources = new ComponentResourceManager(typeof(LaserAlignment)); this.pictureBox = pictureBox; InitializeComponent(); helper = new AlignInfoHelper(this); this.Load += LaserAlignment_Load; Index = -2; }
public SettingCtrl(ZWPictureBox pictureBox) : base() { this.pictureBox = pictureBox; this.ShowIndex = 4; InitializeComponent(); resources = new ComponentResourceManager(typeof(SettingCtrl)); this.textBoxItemStoragePath.Text = sysConfig.StorePath; UpdateComboLanguage(); InitializeLaserType(); }
public LaserCtrl(ZWPictureBox pictureBox) : base() { resources = new ComponentResourceManager(typeof(LaserCtrl)); holePulsePoints = SysConfig.GetSysConfig().LaserConfig.HolePulsePoints; this.pictureBox = pictureBox; this.ShowIndex = 0; graphicsProperties = graphicsPropertiesManager.GetPropertiesByName("Circle"); InitializeComponent(); InitializeSlider(); }
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(); }
/// <summary> /// first shold initialize ZWPictureBox /// </summary> /// <param name="ZWPictureBox"></param> public static void InitializeCtrlFactory(ZWPictureBox pictureBox) { ctrlFactory = new CtrlFactory(pictureBox); }