清理多余引用

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

@@ -12,7 +12,7 @@ public class CivilConnectionCmd : ExternalCommand
{
try
{
Common.Assists.WinDialogAssist.ShowOrActivate<ResolveCivilConnectView, ResolveCivilConnectViewModel>(UiDocument);
WinDialogAssist.ShowOrActivate<ResolveCivilConnectView, ResolveCivilConnectViewModel>(UiDocument);
}
catch (Exception ex)
{

View File

@@ -9,7 +9,7 @@ public class CreateOpeningsCmd : ExternalCommand
{
public override void Execute()
{
Common.Assists.WinDialogAssist.ShowOrActivate<CreateOpeningsView, CreateOpeningsViewModel>();
WinDialogAssist.ShowOrActivate<CreateOpeningsView, CreateOpeningsViewModel>();
}

View File

@@ -474,7 +474,7 @@ public partial class ResolveCivilConnectViewModel : ObservableObject
if (elementsToSkip.Any())
{
Common.Assists.WinDialogAssist.ShowOrActivate<MessageWin, MessageViewModel>(uidoc, elementsToSkip, "未解决构件");
WinDialogAssist.ShowOrActivate<MessageWin, MessageViewModel>(uidoc, elementsToSkip, "未解决构件");
}
else
{

View File

@@ -134,7 +134,7 @@ public class SplitComsByLevelCmd : ExternalCommand
if (errors.Any())
{
Common.Assists.WinDialogAssist.ShowOrActivate<MessageWin, MessageViewModel>(UiDocument, errors, "未解决错误");
WinDialogAssist.ShowOrActivate<MessageWin, MessageViewModel>(UiDocument, errors, "未解决错误");
}
else
{

View File

@@ -12,7 +12,7 @@ namespace ShrlAlgoToolkit.RevitAddins.RvCivil
public override void Execute()
{
var wallTypes = Document.OfCollector().OfClass(typeof(WallType)).Cast<WallType>().ToList();
Common.Assists.WinDialogAssist.ShowOrActivate<WallFinishesView, WallFinishesViewModel>(wallTypes);
WinDialogAssist.ShowOrActivate<WallFinishesView, WallFinishesViewModel>(wallTypes);
}
}
}

View File

@@ -13,18 +13,18 @@ public partial class WallFinishesViewModel(List<WallType> wallTypes) : Observabl
private readonly ActionEventHandler wallFinishHandler = new ();
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.WallFinishesViewModel.PlaceWallCommand))]
[NotifyCanExecuteChangedFor(nameof(PlaceWallCommand))]
public partial double WallBaseOffset { get; set; }
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.WallFinishesViewModel.PlaceWallCommand))]
[NotifyCanExecuteChangedFor(nameof(PlaceWallCommand))]
private double wallHeight;
[ObservableProperty]
public partial List<WallType> WallTypes { get; set; } = wallTypes;
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCivil.WallFinishesViewModel.PlaceWallCommand))]
[NotifyCanExecuteChangedFor(nameof(PlaceWallCommand))]
private WallType selectedWallType;
public PlacementType PlaceType { get; set; }
@@ -58,7 +58,7 @@ public partial class WallFinishesViewModel(List<WallType> wallTypes) : Observabl
PlaceWallFinishesByFace(uiapp, SelectedWallType, wallWidth, WallHeight, WallBaseOffset);
break;
*/
WallFinishesViewModel.PlaceWallFinishesByFace(uidoc, SelectedWallType, wallWidth, WallHeight, WallBaseOffset);
PlaceWallFinishesByFace(uidoc, SelectedWallType, wallWidth, WallHeight, WallBaseOffset);
break;
case PlacementType.ByWall:
PlaceWallFinishesByWall(uidoc, SelectedWallType, wallWidth, WallHeight, WallBaseOffset);