清理多余引用
This commit is contained in:
@@ -9,6 +9,6 @@ public class BricksFinishesCmd : ExternalCommand
|
||||
{
|
||||
public override void Execute()
|
||||
{
|
||||
Common.Assists.WinDialogAssist.ShowOrActivate<BricksFinishesView, BricksFinishesViewModel>();
|
||||
WinDialogAssist.ShowOrActivate<BricksFinishesView, BricksFinishesViewModel>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user