更新整理
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.DB.Architecture;
|
||||
using Autodesk.Revit.UI;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
using Nice3point.Revit.Toolkit.External.Handlers;
|
||||
|
||||
|
||||
namespace ShrlAlgo.RvKits.RvCivil;
|
||||
namespace ShrlAlgoToolkit.RevitAddins.RvCivil;
|
||||
|
||||
public partial class FloorFinishesViewModel : ObservableValidator
|
||||
{
|
||||
@@ -28,7 +25,7 @@ public partial class FloorFinishesViewModel : ObservableValidator
|
||||
|
||||
[Required]
|
||||
[Range(-6000, 6000, ErrorMessage = "输入偏移量值范围有误")]
|
||||
[NotifyCanExecuteChangedFor(nameof(PlaceFloorCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.FloorFinishesViewModel.PlaceFloorCommand))]
|
||||
[NotifyDataErrorInfo]
|
||||
[ObservableProperty]
|
||||
private double floorOffset;
|
||||
@@ -58,7 +55,7 @@ public partial class FloorFinishesViewModel : ObservableValidator
|
||||
[ObservableProperty] private bool rbAllRooms;
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(PlaceFloorCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.FloorFinishesViewModel.PlaceFloorCommand))]
|
||||
private FloorType selectedFloorType;
|
||||
|
||||
private bool CanPlace => SelectedFloorType != null && !HasErrors;
|
||||
|
||||
Reference in New Issue
Block a user