diff options
Diffstat (limited to 'UVtools.WPF/Controls/Calibrators/CalibrateXYZAccuracyControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Calibrators/CalibrateXYZAccuracyControl.axaml.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/UVtools.WPF/Controls/Calibrators/CalibrateXYZAccuracyControl.axaml.cs b/UVtools.WPF/Controls/Calibrators/CalibrateXYZAccuracyControl.axaml.cs index c9deea5..edbfd18 100644 --- a/UVtools.WPF/Controls/Calibrators/CalibrateXYZAccuracyControl.axaml.cs +++ b/UVtools.WPF/Controls/Calibrators/CalibrateXYZAccuracyControl.axaml.cs @@ -40,15 +40,7 @@ namespace UVtools.WPF.Controls.Calibrators public CalibrateXYZAccuracyControl() { InitializeComponent(); - BaseOperation = new OperationCalibrateXYZAccuracy(); - - 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 OperationCalibrateXYZAccuracy(SlicerFile); _timer = new Timer(20) { @@ -69,11 +61,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(); |