long candy support
This commit is contained in:
@@ -22,7 +22,7 @@ namespace VisionBuilder.UI.Windows.Dialogs
|
||||
InitializeComponent();
|
||||
ReloadRecipes();
|
||||
|
||||
if (!_recipeCreationTool.Enabled)
|
||||
if (_recipeCreationTool.Enabled)
|
||||
{
|
||||
btnCreateNewRecipe.Visible = true;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,16 @@ namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class WindowsRecipeSelectionDialogService: IRecipeSelectionDialogService
|
||||
{
|
||||
private readonly IRecipeCreationTool _recipeCreationTool;
|
||||
|
||||
public WindowsRecipeSelectionDialogService(IRecipeCreationTool recipeCreationTool)
|
||||
{
|
||||
_recipeCreationTool = recipeCreationTool;
|
||||
}
|
||||
|
||||
public bool SelectRecipe(RecipeSelectionVM recipeSelectionVm)
|
||||
{
|
||||
RecipeSelectionDialog dialog = new RecipeSelectionDialog(recipeSelectionVm);
|
||||
RecipeSelectionDialog dialog = new RecipeSelectionDialog(recipeSelectionVm, _recipeCreationTool);
|
||||
if(dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user