diff options
Diffstat (limited to 'UVtools.GUI/Forms/FrmMutation.cs')
-rw-r--r-- | UVtools.GUI/Forms/FrmMutation.cs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/UVtools.GUI/Forms/FrmMutation.cs b/UVtools.GUI/Forms/FrmMutation.cs index 0729e88..be92c0e 100644 --- a/UVtools.GUI/Forms/FrmMutation.cs +++ b/UVtools.GUI/Forms/FrmMutation.cs @@ -8,6 +8,7 @@ using System; using System.Windows.Forms; +using UVtools.Core; namespace UVtools.GUI.Forms { @@ -49,15 +50,21 @@ namespace UVtools.GUI.Forms #endregion #region Constructors - public FrmMutation(Mutation mutation, uint defaultIterations = 1) + + public FrmMutation() { InitializeComponent(); + } + + public FrmMutation(Mutation mutation, uint defaultIterations = 1) : this() + { + Mutation = mutation; DialogResult = DialogResult.Cancel; if (defaultIterations == 0 || - mutation.Mutate == Mutation.Mutates.PyrDownUp || - mutation.Mutate == Mutation.Mutates.Solidify) + mutation.Mutate == LayerManager.Mutate.PyrDownUp || + mutation.Mutate == LayerManager.Mutate.Solidify) { lbIterationsStart.Enabled = numIterationsStart.Enabled = @@ -72,8 +79,8 @@ namespace UVtools.GUI.Forms numIterationsStart.Select(); } - if (Mutation.Mutate == Mutation.Mutates.SmoothGaussian || - Mutation.Mutate == Mutation.Mutates.SmoothMedian) + if (Mutation.Mutate == LayerManager.Mutate.SmoothGaussian || + Mutation.Mutate == LayerManager.Mutate.SmoothMedian) { lbIterationsStop.Enabled = nmIterationsEnd.Enabled = @@ -185,8 +192,8 @@ namespace UVtools.GUI.Forms return; } - if (Mutation.Mutate == Mutation.Mutates.SmoothGaussian || - Mutation.Mutate == Mutation.Mutates.SmoothMedian) + if (Mutation.Mutate == LayerManager.Mutate.SmoothGaussian || + Mutation.Mutate == LayerManager.Mutate.SmoothMedian) { if (IterationsFade) { |