private ConstraintSetCasePallet BuildConstraintSet()
 {
     // constraint set
     ConstraintSetCasePallet constraintSet = new ConstraintSetCasePallet();
     // overhang
     constraintSet.Overhang = new Vector2D(uCtrlOverhang.ValueX, uCtrlOverhang.ValueY);
     // orientations
     constraintSet.SetAllowedOrientations(uCtrlCaseOrientation.AllowedOrientations);
     // conditions
     constraintSet.OptMaxHeight = uCtrlOptMaximumHeight.Value;
     constraintSet.OptMaxWeight = uCtrlOptMaximumWeight.Value;
     return constraintSet;
 }