leerform recipe subsystem created

This commit is contained in:
EugeneTes
2026-03-31 13:26:26 +02:00
parent 4bd117af47
commit 1c7a4abd5c
20 changed files with 823 additions and 70 deletions

View File

@@ -83,14 +83,14 @@ namespace VisionBuilder.UI.Windows.Dialogs
DialogResult = DialogResult.Cancel;
}
private void btnCreateNewRecipe_Click(object sender, EventArgs e)
private async void btnCreateNewRecipe_Click(object sender, EventArgs e)
{
if (_recipeCreationTool.CreateRecipe(out var recipeName))
var recipeName = await _recipeCreationTool.CreateRecipeAsync();
if (recipeName != null)
{
_recipeSelectionVm.SelectedRecipe = new RecipeData() { RecipeName = recipeName };
DialogResult = DialogResult.OK;
}
}
}
}