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

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,42 @@
using Autodesk.Revit.DB;
using CommunityToolkit.Mvvm.ComponentModel;
using ShrlAlgo.Toolkit.Mvvm.Attributes;
namespace ShrlAlgo.RvKits.RvFamily;
public partial class RenameTypeItem : ObservableValidator
{
[ObservableProperty]
private bool isSelected;
[ObservableProperty]
[UndefinedChar]
[NotifyDataErrorInfo]
private string newTypeName;
[ObservableProperty]
private string oldTypeName;
partial void OnIsSelectedChanged(bool value)
{
if (value == false)
{
NewTypeName = string.Empty;
}
}
public ElementType ElementType { get; set; }
public string CategoryName { get; set; }
public string FamilyName { get; set; }
//public RenameTypeItem()
//{
// PropertyChanged += (sender, args) =>
// {
// if (args.PropertyName == nameof(RenameTypeItem.IsSelected))
// OnPropertyChanged(nameof(RenameTypeViewModel.IsAllItemsSelected));
// };
//}
}