清理多余引用
This commit is contained in:
@@ -12,7 +12,7 @@ public class CivilConnectionCmd : ExternalCommand
|
||||
{
|
||||
try
|
||||
{
|
||||
Common.Assists.WinDialogAssist.ShowOrActivate<ResolveCivilConnectView, ResolveCivilConnectViewModel>(UiDocument);
|
||||
WinDialogAssist.ShowOrActivate<ResolveCivilConnectView, ResolveCivilConnectViewModel>(UiDocument);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ public class CreateOpeningsCmd : ExternalCommand
|
||||
{
|
||||
public override void Execute()
|
||||
{
|
||||
Common.Assists.WinDialogAssist.ShowOrActivate<CreateOpeningsView, CreateOpeningsViewModel>();
|
||||
WinDialogAssist.ShowOrActivate<CreateOpeningsView, CreateOpeningsViewModel>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user