命名优化,达芬奇字体修改工具
This commit is contained in:
@@ -13,15 +13,15 @@ public partial class CableLayoutViewModel : ObservableValidator
|
||||
public CableLayoutViewModel(Document doc)
|
||||
{
|
||||
this.doc = doc;
|
||||
specifications = new FilteredElementCollector(doc).OfClass(typeof(ConduitType)).Cast<ConduitType>().ToList();
|
||||
Specifications = new FilteredElementCollector(doc).OfClass(typeof(ConduitType)).Cast<ConduitType>().ToList();
|
||||
}
|
||||
[ObservableProperty]
|
||||
private ConduitType selectedConduitType;
|
||||
public partial ConduitType SelectedConduitType { get; set; }
|
||||
|
||||
[Range(1, 20, ErrorMessage = "输入值有误!")]
|
||||
[ObservableProperty]
|
||||
[NotifyDataErrorInfo]
|
||||
private int count;
|
||||
public partial int Count { get; set; }
|
||||
|
||||
//public int Count
|
||||
//{
|
||||
@@ -30,11 +30,13 @@ public partial class CableLayoutViewModel : ObservableValidator
|
||||
//}
|
||||
|
||||
[ObservableProperty]
|
||||
private List<ConduitType> specifications;
|
||||
public partial List<ConduitType> Specifications { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private ConduitSize size;
|
||||
public partial ConduitSize Size { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private Dictionary<string, ConduitSize> sizes;
|
||||
public partial Dictionary<string, ConduitSize> Sizes { get; set; }
|
||||
|
||||
[RelayCommand]
|
||||
private void CloseWin(object obj)
|
||||
|
||||
Reference in New Issue
Block a user