清理多余引用

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

@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Threading;
using System.Windows.Threading;
namespace ShrlAlgoToolkit.RevitAddins.Common.Controls
@@ -53,7 +48,7 @@ namespace ShrlAlgoToolkit.RevitAddins.Common.Controls
}
catch (Exception ex)
{
Autodesk.Revit.UI.TaskDialog.Show("Task Error", ex.Message);
TaskDialog.Show("Task Error", ex.Message);
}
finally
{

View File

@@ -1,13 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Threading;
namespace ShrlAlgoToolkit.RevitAddins.Common.Controls
namespace ShrlAlgoToolkit.RevitAddins.Common.Controls
{
// 用于给外界调用的报告器
public class ProgressReporter

View File

@@ -1,17 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace ShrlAlgoToolkit.RevitAddins.Common.Controls
@@ -36,7 +25,7 @@ namespace ShrlAlgoToolkit.RevitAddins.Common.Controls
private void BtnCancel_Click(object sender, RoutedEventArgs e)
{
_viewModel.Cancel();
(sender as System.Windows.Controls.Button).IsEnabled = false;
(sender as Button).IsEnabled = false;
}
// 屏蔽系统的 Alt+F4 关闭,强制必须等主线程任务结束