using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace HardwareConfig { public class MCardAxisGroupHardConfig : BaseHardware { private ushort iAxisesCount = 3; [Browsable(false)] [Category("参数")] public int 编号 { get; set; } = 0; [Category("参数")] public ushort[] 轴卡编号 { get; set; } = new ushort[6] { 0,0,0,0,0,0}; [Category("参数")] public string 轴组名称 { set; get; } = "轴组"; [Category("参数")] public ushort 轴数 { get { return iAxisesCount; } set { iAxisesCount = value; if (iAxisesCount < 1|| iAxisesCount > 6) { iAxisesCount = 1; MessageBox.Show($"轴组个数需为1-6", "Tips"); } } } public ushort 插补坐标系 { get; set; } = 0; } }