writing tests for sheets

This commit is contained in:
Lars Brubaker 2021-06-02 14:30:29 -07:00
parent 3d068ef868
commit 0dcb08e1cc
6 changed files with 74 additions and 19 deletions

View file

@ -213,8 +213,13 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
Action<double> setWidth = (newWidth) => width.Expression = newWidth.ToString();
Func<double> getDepth = () => depth.Value(item);
Action<double> setDepth = (newDepth) => depth.Expression = newDepth.ToString();
Func<double> getHeight = () => height.Value(item);
Action<double> setHeight = (newHeight) => height.Expression = newHeight.ToString();
Func<double> getHeight = null;
Action<double> setHeight = null;
if (height != null)
{
getHeight = () => height.Value(item);
setHeight = (newHeight) => height.Expression = newHeight.ToString();
}
if (width != null
&& !width.IsEquation