diff options
Diffstat (limited to 'UVtools.WPF/Controls/Calibrators/CalibrateStressTowerControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Calibrators/CalibrateStressTowerControl.axaml.cs | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/UVtools.WPF/Controls/Calibrators/CalibrateStressTowerControl.axaml.cs b/UVtools.WPF/Controls/Calibrators/CalibrateStressTowerControl.axaml.cs index d06a3b0..4825095 100644 --- a/UVtools.WPF/Controls/Calibrators/CalibrateStressTowerControl.axaml.cs +++ b/UVtools.WPF/Controls/Calibrators/CalibrateStressTowerControl.axaml.cs @@ -17,15 +17,7 @@ namespace UVtools.WPF.Controls.Calibrators public CalibrateStressTowerControl() { InitializeComponent(); - BaseOperation = new OperationCalibrateStressTower(); - - 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 OperationCalibrateStressTower(SlicerFile); } private void InitializeComponent() @@ -33,20 +25,15 @@ namespace UVtools.WPF.Controls.Calibrators AvaloniaXamlLoader.Load(this); } - public override void Callback(ToolWindow.Callbacks callback) + /*public override void Callback(ToolWindow.Callbacks callback) { if (App.SlicerFile is null) return; switch (callback) { 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; break; } - } + }*/ } } |