清理引用,将NavigatorServices更改为使用Message来实现导航的切换
This commit is contained in:
@@ -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; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user