更新整理
This commit is contained in:
@@ -1,25 +1,17 @@
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.DB.Mechanical;
|
||||
using Autodesk.Revit.DB.Plumbing;
|
||||
using Autodesk.Revit.UI.Selection;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
using Nice3point.Revit.Toolkit.External.Handlers;
|
||||
|
||||
using System;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Diagnostics;
|
||||
|
||||
using System.Windows;
|
||||
|
||||
|
||||
|
||||
|
||||
namespace ShrlAlgo.RvKits.RvMEP;
|
||||
namespace ShrlAlgoToolkit.RevitAddins.RvMEP;
|
||||
|
||||
public partial class AnyConnectViewModel : ObservableValidator
|
||||
{
|
||||
@@ -38,7 +30,7 @@ public partial class AnyConnectViewModel : ObservableValidator
|
||||
private bool isMultiSelect = true;
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(ConnectCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvMEP.AnyConnectViewModel.ConnectCommand))]
|
||||
private bool canRunning = true;
|
||||
|
||||
[ObservableProperty]
|
||||
@@ -62,7 +54,7 @@ public partial class AnyConnectViewModel : ObservableValidator
|
||||
KeyIntPtrHelper.RaiseEscTwice();
|
||||
}
|
||||
|
||||
[RelayCommand(CanExecute = nameof(CanRunning))]
|
||||
[RelayCommand(CanExecute = nameof(RevitAddins.RvMEP.AnyConnectViewModel.CanRunning))]
|
||||
private void Connect()
|
||||
{
|
||||
CanRunning = false;
|
||||
|
||||
Reference in New Issue
Block a user