2024-09-22 11:05:41 +08:00
|
|
|
|
using Autodesk.Revit.DB;
|
2025-02-10 20:53:40 +08:00
|
|
|
|
|
2024-09-22 11:05:41 +08:00
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
|
2025-02-10 20:53:40 +08:00
|
|
|
|
using ShrlAlgo.Toolkit.Mvvm.Attributes;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
2025-02-10 20:53:40 +08:00
|
|
|
|
namespace ShrlAlgo.RvKits.RvFamily;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
}
|