|
@@ -68,6 +68,11 @@ namespace SAGA.MBI
|
|
}
|
|
}
|
|
return Result.Succeeded;
|
|
return Result.Succeeded;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
|
+ {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 报告设备所在空间
|
|
/// 报告设备所在空间
|
|
@@ -117,16 +122,6 @@ namespace SAGA.MBI
|
|
}
|
|
}
|
|
return Result.Succeeded;
|
|
return Result.Succeeded;
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
|
|
- /// when a document is open.
|
|
|
|
- /// </summary>
|
|
|
|
- public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -134,7 +129,7 @@ namespace SAGA.MBI
|
|
/// </summary>
|
|
/// </summary>
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
- public class AddEquipLocationCommand : ExternalCommand, IExternalCommandAvailability
|
|
|
|
|
|
+ public class AddEquipLocationCommand : ExternalCommand
|
|
{
|
|
{
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
{
|
|
{
|
|
@@ -166,7 +161,7 @@ namespace SAGA.MBI
|
|
/// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
/// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
/// when a document is open.
|
|
/// when a document is open.
|
|
/// </summary>
|
|
/// </summary>
|
|
- public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
|
|
|
+ public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
{
|
|
{
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -176,7 +171,7 @@ namespace SAGA.MBI
|
|
/// </summary>
|
|
/// </summary>
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
- public class CheckEquipinFloorCommand : ExternalCommand, IExternalCommandAvailability
|
|
|
|
|
|
+ public class CheckEquipinFloorCommand : ExternalCommand
|
|
{
|
|
{
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
{
|
|
{
|
|
@@ -199,7 +194,7 @@ namespace SAGA.MBI
|
|
/// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
/// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
/// when a document is open.
|
|
/// when a document is open.
|
|
/// </summary>
|
|
/// </summary>
|
|
- public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
|
|
|
+ public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
{
|
|
{
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -209,7 +204,7 @@ namespace SAGA.MBI
|
|
/// </summary>
|
|
/// </summary>
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
- public class UpdateEquipinSpaceCommand : ExternalCommand, IExternalCommandAvailability
|
|
|
|
|
|
+ public class UpdateEquipinSpaceCommand : ExternalCommand
|
|
{
|
|
{
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
{
|
|
{
|
|
@@ -241,7 +236,7 @@ namespace SAGA.MBI
|
|
/// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
/// Onlys show the dialog when a document is open, as Dockable dialogs are only available
|
|
/// when a document is open.
|
|
/// when a document is open.
|
|
/// </summary>
|
|
/// </summary>
|
|
- public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
|
|
|
+ public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
{
|
|
{
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -302,7 +297,7 @@ namespace SAGA.MBI
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
- DataCheckProgressBarClient.Stop();
|
|
|
|
|
|
+ CheckProgressBarClient.Stop();
|
|
MessageShow.Show(e);
|
|
MessageShow.Show(e);
|
|
return Result.Cancelled;
|
|
return Result.Cancelled;
|
|
}
|
|
}
|
|
@@ -340,7 +335,7 @@ namespace SAGA.MBI
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
- DataCheckProgressBarClient.Stop();
|
|
|
|
|
|
+ CheckProgressBarClient.Stop();
|
|
MessageShow.Show(e);
|
|
MessageShow.Show(e);
|
|
return Result.Cancelled;
|
|
return Result.Cancelled;
|
|
}
|
|
}
|