优化更新代码,添加界面功能并整合

This commit is contained in:
GG Z
2025-02-10 20:53:40 +08:00
parent 83b846f15f
commit 978e03a67f
1389 changed files with 95739 additions and 22200 deletions

View File

@@ -0,0 +1,32 @@
using Autodesk.Revit.DB;
using CommunityToolkit.Mvvm.ComponentModel;
using ShrlAlgo.Toolkit.Mvvm.Attributes;
namespace ShrlAlgo.RvKits.RvFamily;
public partial class RenameFamilyItem : ObservableValidator
{
[ObservableProperty]
private bool isSelected;
[ObservableProperty]
[UndefinedChar]
[NotifyDataErrorInfo]
private string newFamilyName;
[ObservableProperty]
private string oldFamilyName;
partial void OnIsSelectedChanged(bool value)
{
if (value == false)
{
NewFamilyName = string.Empty;
}
}
public Family Family { get; set; }
public string CategoryName { get; set; }
}