清理多余引用
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user