命名优化,达芬奇字体修改工具
This commit is contained in:
@@ -30,52 +30,51 @@ public partial class RenameTypeViewModel : ObservableObject
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvFamily.RenameTypeViewModel.ModifyNameCommand))]
|
||||
//[NotifyPropertyChangedFor(nameof(IsAllItemsSelected))]
|
||||
private List<RenameTypeItem> renameItems;
|
||||
public partial List<RenameTypeItem> RenameItems { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private bool canInput;
|
||||
public partial bool CanInput { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private bool isRunning;
|
||||
public partial bool IsRunning { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 选中正在使用中的条目
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private bool isUsed;
|
||||
public partial bool IsUsed { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private Dictionary<string, List<ElementType>> collection;
|
||||
public partial Dictionary<string, List<ElementType>> Collection { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private int categoryCount;
|
||||
public partial int CategoryCount { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private int modifyType;
|
||||
public partial int ModifyType { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private string foundText;
|
||||
public partial string FoundText { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private string prefixText;
|
||||
public partial string PrefixText { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private string replaceText;
|
||||
public partial string ReplaceText { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private string searchText;
|
||||
public partial string SearchText { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private string separator = "-";
|
||||
public partial string Separator { get; set; } = "-";
|
||||
|
||||
[ObservableProperty]
|
||||
private string suffixText;
|
||||
public partial string SuffixText { get; set; }
|
||||
|
||||
//[ObservableProperty]
|
||||
//private IList selectedItems;
|
||||
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
|
||||
public bool CanModify => RenameItems != null && Enumerable.Any<RenameTypeItem>(RenameItems, item => item.IsSelected);
|
||||
public bool CanModify => RenameItems != null && RenameItems.Any<RenameTypeItem>(item => item.IsSelected);
|
||||
//[ObservableProperty]
|
||||
//private bool? isAllItemsSelected;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user