更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -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;