清理多余引用

This commit is contained in:
2026-02-24 11:34:18 +08:00
parent 4961914919
commit 0ba966cef2
163 changed files with 279 additions and 840 deletions

View File

@@ -9,6 +9,6 @@ public class BricksFinishesCmd : ExternalCommand
{
public override void Execute()
{
Common.Assists.WinDialogAssist.ShowOrActivate<BricksFinishesView, BricksFinishesViewModel>();
WinDialogAssist.ShowOrActivate<BricksFinishesView, BricksFinishesViewModel>();
}
}

View File

@@ -12,6 +12,6 @@ public class FloorFinishesCmd : ExternalCommand
public override void Execute()
{
var floorTypes = Document.OfClass<FloorType>().Cast<FloorType>().ToList();
Common.Assists.WinDialogAssist.ShowOrActivate<FloorFinishesView, FloorFinishesViewModel>(floorTypes);
WinDialogAssist.ShowOrActivate<FloorFinishesView, FloorFinishesViewModel>(floorTypes);
}
}

View File

@@ -24,7 +24,7 @@ public partial class FloorFinishesViewModel : ObservableValidator
[Required]
[Range(-6000, 6000, ErrorMessage = "输入偏移量值范围有误")]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.FloorFinishesViewModel.PlaceFloorCommand))]
[NotifyCanExecuteChangedFor(nameof(PlaceFloorCommand))]
[NotifyDataErrorInfo]
[ObservableProperty]
public partial double FloorOffset { get; set; }
@@ -56,7 +56,7 @@ public partial class FloorFinishesViewModel : ObservableValidator
public partial bool RbAllRooms { get; set; }
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.FloorFinishesViewModel.PlaceFloorCommand))]
[NotifyCanExecuteChangedFor(nameof(PlaceFloorCommand))]
public partial FloorType SelectedFloorType { get; set; }
private bool CanPlace => SelectedFloorType != null && !HasErrors;