给应用添加图标,完成给设备添加变量表的功能

This commit is contained in:
2025-07-02 12:01:20 +08:00
parent 663e4fda0c
commit dbf7b81d4b
20 changed files with 326 additions and 151 deletions

View File

@@ -1,13 +1,17 @@
using PMSWPF.Enums;
using CommunityToolkit.Mvvm.ComponentModel;
using PMSWPF.Enums;
namespace PMSWPF.Models;
public class VariableTable
public partial class VariableTable:ObservableObject
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
[ObservableProperty] private string name;
[ObservableProperty] private string description;
public ProtocolType ProtocolType { get; set; }
public List<DataVariable> DataVariables { get; set; }
public int? DeviceId { get; set; }
public Device? Device { get; set; }
}