清理引用,将NavigatorServices更改为使用Message来实现导航的切换

This commit is contained in:
2025-06-23 17:01:06 +08:00
parent 8ee4b7bc05
commit 8fcd2fdf2a
62 changed files with 711 additions and 767 deletions

View File

@@ -1,4 +1,3 @@
using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;
using PMSWPF.Enums;
using SqlSugar;
@@ -6,24 +5,23 @@ using SqlSugar.DbConvert;
namespace PMSWPF.Models;
public partial class Device:ObservableObject
public partial class Device : ObservableObject
{
[ObservableProperty]
private int id;
[ObservableProperty]
private string name;
[ObservableProperty]
private string description ;
[ObservableProperty]
private string ip ;
[ObservableProperty]
private bool isActive =true;
[ObservableProperty]
private bool isRuning ;
[SugarColumn(ColumnDataType="varchar(20)",SqlParameterDbType=typeof(EnumToStringConvert))]
[ObservableProperty] private string description;
[ObservableProperty] private int id;
[ObservableProperty] private string ip;
[ObservableProperty] private bool isActive = true;
[ObservableProperty] private bool isRuning;
[ObservableProperty] private string name;
[SugarColumn(ColumnDataType = "varchar(20)", SqlParameterDbType = typeof(EnumToStringConvert))]
public DeviceType DeviceType { get; set; }
public List<VariableTable>? VariableTables { get; set; }
public List<VariableTable>? VariableTables { get; set; }
public ProtocolType ProtocolType { get; set; }
}