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

@@ -115,9 +115,10 @@ public partial class RecipeSelectionDialog : global::Avalonia.Controls.Window
}
}
private void BtnCreateNew_Click(object? sender, global::Avalonia.Interactivity.RoutedEventArgs e)
private async void BtnCreateNew_Click(object? sender, global::Avalonia.Interactivity.RoutedEventArgs e)
{
if (_recipeCreationTool.CreateRecipe(out var recipeName))
var recipeName = await _recipeCreationTool.CreateRecipeAsync();
if (recipeName != null)
{
_recipeSelectionVm.SelectedRecipe = new RecipeData { RecipeName = recipeName };
_tcs.TrySetResult(true);