예제 #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;
 }
예제 #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();
 }
예제 #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();
 }
예제 #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();
 }
예제 #5
0
 /// <summary>
 /// first shold initialize ZWPictureBox
 /// </summary>
 /// <param name="ZWPictureBox"></param>
 public static void InitializeCtrlFactory(ZWPictureBox pictureBox)
 {
     ctrlFactory = new CtrlFactory(pictureBox);
 }