using System.Windows.Forms; namespace SHARP_CLAS_UI { public partial class uc_Motor_Controler : UserControl { #region Property public MotorAxis motor_axis { get; private set; } public float position { get; private set; } public float speed { get; private set; } public bool serveron { get; private set; } public bool inposition { get; private set; } public bool home { get; private set; } public bool alarm { get; private set; } public bool positivelimit { get; private set; } public bool negativelimit { get; private set; } #endregion public uc_Motor_Controler() { InitializeComponent(); } public void Set_MotorAxis(MotorAxis motor_axis) { this.motor_axis = motor_axis; lb_Motor_Axis.Text = $"{(uint)motor_axis}"; lb_Motor_Name.Text = motor_axis.ToString(); } } }