Ejemplo n.º 1
0
 public StatisticsCtrl(RichPictureBox richPictureBox) : base()
 {
     this.ShowIndex = 2;
     this.CtrlType  = CtrlType.StatisticsCtrl;
     InitializeComponent();
     resources           = new ComponentResourceManager(typeof(StatisticsCtrl));
     this.richPictureBox = richPictureBox;
 }
Ejemplo n.º 2
0
 public RulerAppearanceCtrl(RichPictureBox pictureBox) : base()
 {
     this.pictureBox = pictureBox;
     resources       = new ComponentResourceManager(typeof(RulerAppearanceCtrl));
     this.ShowIndex  = 4;
     this.CtrlType   = CtrlType.RulerAppearanceCtrl;
     InitializeComponent();
     this.InitializeThumbCustomShape();
 }
Ejemplo n.º 3
0
 public ImageTracker(RichPictureBox richPictureBox)
 {
     InitializeComponent();
     this.richPictureBox = richPictureBox;
     this.Font           = SkinManager.PINGFANG_MEDIUM_9;
     // update control style
     SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
              ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
 }
Ejemplo n.º 4
0
 public ScaleAppearanceCtrl(RichPictureBox pictureBox) : base()
 {
     this.pictureBox = pictureBox;
     resources       = new ComponentResourceManager(typeof(ScaleAppearanceCtrl));
     this.ShowIndex  = 10;
     this.CtrlType   = CtrlType.ScaleAppearanceCtrl;
     InitializeComponent();
     this.graphicsProperties = graphicsPropertiesManager.GetPropertiesByName("Ruler");
     this.InitializeThumbCustomShape();
     SetSliderValue();
 }
Ejemplo n.º 5
0
 public ObjectLenseCtrl(RichPictureBox richPictureBox)
 {
     this.CtrlType       = CtrlType.LenseCtrl;
     this.richPictureBox = richPictureBox;
     InitializeComponent();
     InitializeLenses();
     resources = new ComponentResourceManager(typeof(ObjectLenseCtrl));
     this.rulerAdjustCtrl1.UpdownClickHandler       += UpdownClickHandler;
     this.rulerAdjustCtrl1.LabelValueKeyDownHandler += LabelValueKeyDownHandler;
     this.cmbCameraType.SelectedIndex         = (int)Program.SysConfig.CCD.CType;
     this.cmbCameraType.SelectedIndexChanged += new System.EventHandler(this.cmbCameraType_SelectedIndexChanged);
 }
Ejemplo n.º 6
0
 public SettingControl(RichPictureBox richPictureBox) : base()
 {
     this.richPictureBox = richPictureBox;
     InitializeComponent();
     this.CtrlType = CtrlType.SettingCtrl;
     resources     = new ComponentResourceManager(typeof(SettingControl));
     this.textBoxItemStoragePath.Text = Program.SysConfig.StorePath;
     InitializeLaserType();
     InitializeScaleCoefficient();
     this.cmbLaser.SelectedIndexChanged += new System.EventHandler(this.cmbLaser_SelectedIndexChanged);
     this.cbxScale.SelectedIndexChanged += CbxScale_SelectedIndexChanged;
     InitializeCmbTime();
     serialPortCom = SerialPortManager.GetInstance();
 }
Ejemplo n.º 7
0
 public LaserAppearanceCtrl(RichPictureBox pictureBox) : base()
 {
     resources          = new ComponentResourceManager(typeof(LaserAppearanceCtrl));
     this.ShowIndex     = 3;
     this.CtrlType      = CtrlType.LaserAppreance;
     graphicsProperties = graphicsPropertiesManager.GetPropertiesByName("Circle");
     InitializeComponent();
     this.pictureBox               = pictureBox;
     this.sliderTargetSize.Value   = graphicsProperties.TargetSize;
     this.sliderThickness.Value    = graphicsProperties.PenWidth;
     this.sliderTransparency.Value = (int)(graphicsProperties.Alpha * 100 / 255f);
     this.sliderZoneSize.Value     = graphicsProperties.ExclusionSize;
     this.sliderZoneColour.Value   = graphicsProperties.ColorIndex() * 10;
     this.InitializeThumbCustomShape();
 }
Ejemplo n.º 8
0
 public CtrlFactory(RichPictureBox richPictureBox)
 {
     setingControl       = new SettingControl(richPictureBox);
     statisticsCtrl      = new StatisticsCtrl(richPictureBox);
     laserAppearanceCtrl = new LaserAppearanceCtrl(richPictureBox);
     rulerAppearanceCtrl = new RulerAppearanceCtrl(richPictureBox);
     laserCtrl           = new LaserCtrl(richPictureBox);
     this.laserAlignment = new LaserAlignment();
     videoChooseCtrl     = new VideoChooseCtrl();
     laserHoleSize       = new LaserHoleSize();
     debugCtrl           = new DebugCtrl();
     lenseCtrl           = new ObjectLenseCtrl(richPictureBox);
     shortcutCtrl        = new ShortcutCtrl(Program.EntryForm.hotKeyManager);
     scaleAppearanceCtrl = new ScaleAppearanceCtrl(richPictureBox);
     aboutCtrl           = new AboutControl();
     systemInfoCtrl      = new SystemInfoCtrl();
 }
Ejemplo n.º 9
0
 public LaserCtrl(RichPictureBox richPictureBox) : base()
 {
     resources           = new ComponentResourceManager(typeof(LaserCtrl));
     this.richPictureBox = richPictureBox;
     holePulsePoints     = Program.SysConfig.LaserConfig.HolePulsePoints;
     this.ShowIndex      = 5;
     this.CtrlType       = CtrlType.LaserCtrl;
     graphicsProperties  = graphicsPropertiesManager.GetPropertiesByName("Circle");
     InitializeComponent();
     InitializeSlider();
     this.sliderCtrl.Slider.Value    = (int)(Program.SysConfig.LaserConfig.PulseWidth * 10);
     this.sliderCtrl.Slider.MouseUp += Slider_MouseUp;
     serialPortCom       = SerialPortManager.GetInstance();
     savedPulseWidthList = Program.SysConfig.LaserConfig.SavedPulseWidth;
     InitializeSavedPulseWidthList();
     this.comboBoxEx1.SelectedValueChanged += ComboBoxEx1_SelectedValueChanged;
     this.holesSlider.Visible   = false;
     this.lblHoleNumber.Visible = false;
 }
Ejemplo n.º 10
0
 public CoordinateHelper(RichPictureBox richPictureBox)
 {
     this.richPictureBox = richPictureBox;
 }
Ejemplo n.º 11
0
 public static void InitializeCtrlFactory(RichPictureBox richPictureBox)
 {
     ctrlFactory = new CtrlFactory(richPictureBox);
 }