diff --git a/UI/RecipeGeneratorView.cs b/UI/RecipeGeneratorView.cs --- a/UI/RecipeGeneratorView.cs +++ b/UI/RecipeGeneratorView.cs @@ -462,7 +462,18 @@ namespace DesertPaintLab Started(this, null); } - generator.BeginRecipeGeneration((uint)(checkButtonRibbon.Active ? PaintRecipe.RIBBON_RECIPE_MIN_CONCENTRATION : PaintRecipe.PAINT_RECIPE_MIN_CONCENTRATION), (uint)maxRecipeSpinButton.ValueAsInt, (uint)minIngredientsSpinButton.Value, (uint)maxIngredientsSpinButton.ValueAsInt, (uint)fullQuantityDepthSpinButton.ValueAsInt, (uint)fullQuantitySpinButton.ValueAsInt); + uint minConcentration = (uint)(checkButtonRibbon.Active ? PaintRecipe.RIBBON_RECIPE_MIN_CONCENTRATION : PaintRecipe.PAINT_RECIPE_MIN_CONCENTRATION); + uint maxConcentration = (uint)maxRecipeSpinButton.ValueAsInt; + uint minIngredients = (uint)minIngredientsSpinButton.Value; + uint maxIngredients = (uint)maxIngredientsSpinButton.ValueAsInt; + uint fullQuantityDepth = (uint)fullQuantityDepthSpinButton.ValueAsInt; + uint fullQuantity = (uint)fullQuantitySpinButton.ValueAsInt; + generator.BeginRecipeGeneration(minConcentration, + maxConcentration, + minIngredients, + maxIngredients, + fullQuantityDepth, + fullQuantity); } protected void OnStopResume(object sender, EventArgs e)