diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationEditParameters.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationEditParameters.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/UVtools.Core/Operations/OperationEditParameters.cs b/UVtools.Core/Operations/OperationEditParameters.cs index 7f774a6..b31e017 100644 --- a/UVtools.Core/Operations/OperationEditParameters.cs +++ b/UVtools.Core/Operations/OperationEditParameters.cs @@ -17,8 +17,11 @@ namespace UVtools.Core.Operations [Serializable] public class OperationEditParameters : Operation { + #region Members private bool _perLayerOverride; + #endregion + #region Overrides public override Enumerations.LayerRangeSelection StartLayerRangeSelection => Enumerations.LayerRangeSelection.None; public override bool CanROI => false; @@ -75,6 +78,9 @@ namespace UVtools.Core.Operations return new StringTag(sb.ToString()); } + #endregion + + #region Propertiers public FileFormat.PrintParameterModifier[] Modifiers { get; set; } @@ -86,6 +92,7 @@ namespace UVtools.Core.Operations get => _perLayerOverride; set => RaiseAndSetIfChanged(ref _perLayerOverride, value); } + #endregion public OperationEditParameters() { @@ -95,5 +102,15 @@ namespace UVtools.Core.Operations { Modifiers = modifiers; } + + #region Methods + + public override bool Execute(FileFormat slicerFile, OperationProgress progress = null) + { + slicerFile.EditPrintParameters(this); + return true; + } + + #endregion } } |