diff options
Diffstat (limited to 'UVtools.WPF/Controls/Calibrators/CalibrateToleranceControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Calibrators/CalibrateToleranceControl.axaml.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/UVtools.WPF/Controls/Calibrators/CalibrateToleranceControl.axaml.cs b/UVtools.WPF/Controls/Calibrators/CalibrateToleranceControl.axaml.cs index 7191bfb..19e4103 100644 --- a/UVtools.WPF/Controls/Calibrators/CalibrateToleranceControl.axaml.cs +++ b/UVtools.WPF/Controls/Calibrators/CalibrateToleranceControl.axaml.cs @@ -39,15 +39,7 @@ namespace UVtools.WPF.Controls.Calibrators public CalibrateToleranceControl() { InitializeComponent(); - BaseOperation = new OperationCalibrateTolerance(); - - if (App.SlicerFile is not null) - { - Operation.LayerHeight = (decimal)App.SlicerFile.LayerHeight; - Operation.BottomLayers = App.SlicerFile.BottomLayerCount; - Operation.BottomExposure = (decimal)App.SlicerFile.BottomExposureTime; - Operation.NormalExposure = (decimal)App.SlicerFile.ExposureTime; - } + BaseOperation = new OperationCalibrateTolerance(SlicerFile); _timer = new Timer(100) { @@ -68,11 +60,6 @@ namespace UVtools.WPF.Controls.Calibrators { case ToolWindow.Callbacks.Init: case ToolWindow.Callbacks.ProfileLoaded: - Operation.Resolution = App.SlicerFile.Resolution; - if (App.SlicerFile.DisplayWidth > 0) - Operation.DisplayWidth = (decimal)App.SlicerFile.DisplayWidth; - if (App.SlicerFile.DisplayHeight > 0) - Operation.DisplayHeight = (decimal)App.SlicerFile.DisplayHeight; Operation.PropertyChanged += (sender, e) => { _timer.Stop(); |