mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-12 11:32:33 +02:00
12fc6dae7d
When a operation is cancelled affected layers will revert to the original form (#57)
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
/*
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* Version 3, 19 November 2007
|
|
* Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
* of this license document, but changing it is not allowed.
|
|
*/
|
|
using System.Text;
|
|
|
|
namespace UVtools.Core.Operations
|
|
{
|
|
public sealed class OperationLayerRemove : Operation
|
|
{
|
|
#region Overrides
|
|
|
|
public override bool PassActualLayerIndex => true;
|
|
|
|
public override string Title => "Remove layers";
|
|
|
|
public override string Description =>
|
|
"Remove Layers in a given range.";
|
|
|
|
public override string ConfirmationText =>
|
|
$"remove layers {LayerIndexStart} through {LayerIndexEnd}?";
|
|
|
|
public override string ProgressTitle =>
|
|
$"Removing layers {LayerIndexStart} through {LayerIndexEnd}";
|
|
|
|
public override string ProgressAction => "Removed layers";
|
|
|
|
public override bool CanCancel => false;
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
|
|
#endregion
|
|
}
|
|
}
|