leerform recipe subsystem created
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user