diff options
Diffstat (limited to 'UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Calibrators/CalibrateElephantFootControl.axaml.cs | 13 |
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(); |