public SystemInfoCtrl() { resources = new ComponentResourceManager(typeof(SystemInfoCtrl)); this.CtrlType = CtrlType.SystemInoCtrl; InitializeComponent(); serialPortCom = SerialPortManager.GetInstance(); }
public LaserAlignment() : base() { resources = new ComponentResourceManager(typeof(LaserAlignment)); this.ShowIndex = 6; this.CtrlType = CtrlType.LaserAlignment; InitializeComponent(); helper = new AlignInfoHelper(this); this.Load += LaserAlignment_Load; Index = -2; this.KeyDown += LaserAlignment_KeyDown; serialPortCom = SerialPortManager.GetInstance(); }
public LaserHoleSize() { resources = new ComponentResourceManager(typeof(LaserHoleSize)); this.ShowIndex = 8; this.CtrlType = CtrlType.LaserHoleSize; graphicsProperties = graphicsPropertiesManager.GetPropertiesByName("Circle"); InitializeComponent(); InitializeSlider(); InitializeChartSeries(); InitializeHolePulsePoints(); this.holeSizeCtrl.UpdownClickHandler += UpdownClickHandler; serialPortCom = SerialPortManager.GetInstance(); this.btnSave.Click += BtnSave_Click; }
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(); }
private void ContinueFire() { FlickCount++; if (_flickCount == this.activeCircle.InnerCircles.Count) { Flashing = false; } else { if (SerialPortManager.GetInstance() != null) { LaserC71Request c71 = new LaserC71Request(); var bytes = SerialPortManager.GetInstance().Encode(c71); SerialPortManager.GetInstance().SendData(bytes); } SendAlignmentMotorPoint(); } }
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; }