重构CpuType

This commit is contained in:
2025-07-27 21:58:50 +08:00
parent 8b9b096df9
commit 824c3e4df6
12 changed files with 149 additions and 33 deletions

15
DMS.Core/Enums/CpuType.cs Normal file
View File

@@ -0,0 +1,15 @@
using System.ComponentModel;
namespace DMS.Core.Enums;
public enum CpuType
{
[Description("S7-1200")]
S71200,
[Description("S7-1500")]
S71500,
[Description("S7-300")]
S7300,
[Description("S7-400")]
S7400
}

View File

@@ -63,7 +63,7 @@ public class Device
/// </summary>
public List<VariableTable> VariableTables { get; set; } = new();
public string CpuType { get; set; }
public CpuType CpuType { get; set; }
public DeviceType DeviceType { get; set; }
public bool IsRunning { get; set; }
}