File was renamed from src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardOperation.cs |
| | |
| | | using Bro.Common.Helper; |
| | | using Bro.Common.Interface; |
| | | using Bro.Device.GTSCard; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | |
| | | |
| | | namespace Bro.UI.Device.Winform |
| | | { |
| | | public partial class CtrlMotionCardOperation : UserControl, IProcessObserver, ILogOutput |
| | | public partial class CtrlMotionCardOperationBase : UserControl, IRunCtrl |
| | | { |
| | | public CtrlMotionCardOperation() |
| | | public CtrlMotionCardOperationBase() |
| | | { |
| | | InitializeComponent(); |
| | | GTSCardOperationConfig = new GTSCardOperationConfig(); |
| | | } |
| | | |
| | | List<string> _avaiableMethods { get; set; } = new List<string>(); |
| | | public IDevice Device { get; set; } |
| | | |
| | | //protected CameraBase Camera |
| | | //{ |
| | | // get => Device as CameraBase; |
| | | //} |
| | | |
| | | GTSCardOperationConfig GTSCardOperationConfig = null; |
| | | MovingOption movingConfig = null; |
| | | |
| | | private IProcess process = null; |
| | | public IProcess Process |
| | |
| | | |
| | | private void RadioButton_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | //加载对应运动的 movingConfig |
| | | if (radioP2P.Checked) |
| | | { |
| | | movingConfig = GTSCardOperationConfig.MovingOps.FirstOrDefault(u => u.MoveMode == EnumHelper.MotorMoveMode.Normal); |
| | | } |
| | | else if (radioJog.Checked) |
| | | { |
| | | movingConfig = GTSCardOperationConfig.MovingOps.FirstOrDefault(u => u.MoveMode == EnumHelper.MotorMoveMode.Jog); |
| | | } |
| | | else if (radioGoHome.Checked) |
| | | { |
| | | movingConfig = GTSCardOperationConfig.MovingOps.FirstOrDefault(u => u.MoveMode == EnumHelper.MotorMoveMode.FindOri); |
| | | } |
| | | |
| | | propGrid.SelectedObject = movingConfig; |
| | | } |
| | | |
| | | private void buttonClearStatus_Click(object sender, EventArgs e) |