diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml.cs index 893dcd5..f5fff6f 100644 --- a/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml.cs +++ b/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml.cs @@ -21,16 +21,7 @@ namespace UVtools.WPF.Controls.Tools public ToolCalculatorControl() { InitializeComponent(); - BaseOperation = new OperationCalculator - { - CalcMillimetersToPixels = new OperationCalculator.MillimetersToPixels(SlicerFile.Resolution, SlicerFile.Display), - CalcLightOffDelay = new OperationCalculator.LightOffDelayC( - (decimal)SlicerFile.LiftHeight, (decimal)SlicerFile.BottomLiftHeight, - (decimal)SlicerFile.LiftSpeed, (decimal)SlicerFile.BottomLiftSpeed, - (decimal)SlicerFile.RetractSpeed, (decimal)SlicerFile.RetractSpeed), - CalcOptimalModelTilt = new OperationCalculator.OptimalModelTilt(SlicerFile.Resolution, SlicerFile.Display, (decimal) SlicerFile.LayerHeight) - }; - + BaseOperation = new OperationCalculator(SlicerFile); Operation.CalcLightOffDelay.PropertyChanged += (sender, e) => { if (e.PropertyName != nameof(Operation.CalcLightOffDelay.LightOffDelay) && |