大量更新
This commit is contained in:
37
Szmedi.CADkits/BlockReviewItem.cs
Normal file
37
Szmedi.CADkits/BlockReviewItem.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Autodesk.AutoCAD.DatabaseServices;
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
// 用于WPF数据绑定的数据模型
|
||||
public class BlockReviewItem : INotifyPropertyChanged
|
||||
{
|
||||
private string _handle;
|
||||
private string _position;
|
||||
private string _status; // 新增状态属性
|
||||
|
||||
public ObjectId BlockId { get; set; }
|
||||
|
||||
public string Handle
|
||||
{
|
||||
get => _handle;
|
||||
set { _handle = value; OnPropertyChanged(nameof(Handle)); }
|
||||
}
|
||||
|
||||
public string Position
|
||||
{
|
||||
get => _position;
|
||||
set { _position = value; OnPropertyChanged(nameof(Position)); }
|
||||
}
|
||||
|
||||
public string Status
|
||||
{
|
||||
get => _status;
|
||||
set { _status = value; OnPropertyChanged(nameof(Status)); }
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
protected void OnPropertyChanged(string name)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user