Exemple #1
0
 public LaserAlignment(ZWPictureBox pictureBox) : base()
 {
     resources       = new ComponentResourceManager(typeof(LaserAlignment));
     this.pictureBox = pictureBox;
     InitializeComponent();
     helper     = new AlignInfoHelper(this);
     this.Load += LaserAlignment_Load;
     Index      = -2;
 }
Exemple #2
0
 public SettingCtrl(ZWPictureBox pictureBox) : base()
 {
     this.pictureBox = pictureBox;
     this.ShowIndex  = 4;
     InitializeComponent();
     resources = new ComponentResourceManager(typeof(SettingCtrl));
     this.textBoxItemStoragePath.Text = sysConfig.StorePath;
     UpdateComboLanguage();
     InitializeLaserType();
 }
Exemple #3
0
 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();
 }
Exemple #4
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();
 }
Exemple #5
0
 /// <summary>
 /// first shold initialize ZWPictureBox
 /// </summary>
 /// <param name="ZWPictureBox"></param>
 public static void InitializeCtrlFactory(ZWPictureBox pictureBox)
 {
     ctrlFactory = new CtrlFactory(pictureBox);
 }