清理多余引用

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

@@ -44,7 +44,7 @@ public partial class SectionBoxControllerViewModel : ObservableObject
}
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvView.SectionBoxControllerViewModel.RecordSectionBoxCommand), nameof(RevitAddins.RvView.SectionBoxControllerViewModel.UpdateSectionBoxCommand))]
[NotifyCanExecuteChangedFor(nameof(RecordSectionBoxCommand), nameof(UpdateSectionBoxCommand))]
public partial bool CanModify { get; set; }
[ObservableProperty]
@@ -62,7 +62,7 @@ public partial class SectionBoxControllerViewModel : ObservableObject
private readonly UIApplication uiapp;
private int index = 1;
[RelayCommand(CanExecute = nameof(RevitAddins.RvView.SectionBoxControllerViewModel.CanModify))]
[RelayCommand(CanExecute = nameof(CanModify))]
private void RecordSectionBox()
{
if (uiapp.ActiveUIDocument.Document.ActiveView is View3D { IsSectionBoxActive: true } view3D)
@@ -279,7 +279,7 @@ public partial class SectionBoxControllerViewModel : ObservableObject
"重设(剖面)剖面框");
}
}
[RelayCommand(CanExecute = nameof(RevitAddins.RvView.SectionBoxControllerViewModel.CanModify))]
[RelayCommand(CanExecute = nameof(CanModify))]
private void UpdateSectionBox(object obj)
{
if (obj is BoundingBoxXYZ boundingBoxXyz)