Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs')
-rw-r--r--UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs13
1 files changed, 3 insertions, 10 deletions
diff --git a/UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs b/UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs
index f854c65..f5ec546 100644
--- a/UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs
+++ b/UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs
@@ -29,16 +29,10 @@ namespace UVtools.WPF.Controls.Calibrators
public CalibrateElephantFootControl()
{
- this.InitializeComponent();
- BaseOperation = new OperationCalibrateElephantFoot();
+ InitializeComponent();
+
+ BaseOperation = new OperationCalibrateElephantFoot(SlicerFile);
- if(App.SlicerFile is not null)
- {
- Operation.LayerHeight = (decimal) App.SlicerFile.LayerHeight;
- Operation.BottomExposure = (decimal) App.SlicerFile.BottomExposureTime;
- Operation.NormalExposure = (decimal) App.SlicerFile.ExposureTime;
- }
-
_kernelCtrl = this.Find<KernelControl>("KernelCtrl");
_timer = new Timer(20)
@@ -60,7 +54,6 @@ namespace UVtools.WPF.Controls.Calibrators
{
case ToolWindow.Callbacks.Init:
case ToolWindow.Callbacks.ProfileLoaded:
- Operation.Resolution = App.SlicerFile.Resolution;
Operation.PropertyChanged += (sender, e) =>
{
_timer.Stop();