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 PLCAxisGroupHardConfig : BaseHardware { private int iAxisesCount = 3; [Browsable(false)] [Category("参数")] public int 编号 { get; set; } = 0; [Category("参数")] public int [] PLC编号 { get; set; } = new int[6] { 0, 0, 0, 0, 0, 0 };//0; [Category("参数")] public string 轴组名称 { set; get; } = "轴组"; [Category("参数")] public int 轴数 { get { return iAxisesCount; } set { iAxisesCount = value; if (iAxisesCount < 1|| iAxisesCount > 6) { iAxisesCount = 1; MessageBox.Show($"轴组个数需为1-6", "Tips"); } } } } }