实现了添加设备的功能,并写了Object对象的扩展CopyTo方法,实现了数据表的创建。
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace PMSWPF.Models;
|
||||
|
||||
public class Device
|
||||
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 ;
|
||||
[ObservableProperty]
|
||||
private bool isRuning ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user