更新整理
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.UI.Selection;
|
||||
using Autodesk.Windows;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
using Nice3point.Revit.Toolkit.External.Handlers;
|
||||
|
||||
using ShrlAlgo.Toolkit.Core.Assist;
|
||||
using ShrlAlgoToolkit.Core.Assist;
|
||||
using ShrlAlgoToolkit.Core.Assists;
|
||||
|
||||
namespace ShrlAlgo.RvKits.RvMEP;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
|
||||
|
||||
|
||||
namespace ShrlAlgoToolkit.RevitAddins.RvMEP;
|
||||
|
||||
public partial class ClashResolveViewModel : ObservableObject
|
||||
{
|
||||
@@ -28,7 +27,7 @@ public partial class ClashResolveViewModel : ObservableObject
|
||||
/// 正在执行命令
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(ResolveCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvMEP.ClashResolveViewModel.ResolveCommand))]
|
||||
private bool canRunning = true;
|
||||
|
||||
[ObservableProperty]
|
||||
@@ -52,7 +51,7 @@ public partial class ClashResolveViewModel : ObservableObject
|
||||
KeyIntPtrHelper.RaiseEscTwice();
|
||||
}
|
||||
|
||||
[RelayCommand(CanExecute = nameof(CanRunning))]
|
||||
[RelayCommand(CanExecute = nameof(RevitAddins.RvMEP.ClashResolveViewModel.CanRunning))]
|
||||
private void Resolve()
|
||||
{
|
||||
CanRunning = false;
|
||||
|
||||
Reference in New Issue
Block a user