18 lines
550 B
C#
18 lines
550 B
C#
using VisionBuilder.UI.Common.ViewModel;
|
|
using VisionBuilder.UI.Common.ViewModel.Interfaces.UI;
|
|
using VisionBuilder.UI.Windows.Dialogs;
|
|
|
|
namespace VisionBuilder.UI.Windows.Settings;
|
|
|
|
public class WindowsRecipeSelectionDialogService: IRecipeSelectionDialogService
|
|
{
|
|
public bool SelectRecipe(RecipeSelectionVM recipeSelectionVm)
|
|
{
|
|
RecipeSelectionDialog dialog = new RecipeSelectionDialog(recipeSelectionVm);
|
|
if(dialog.ShowDialog() == DialogResult.OK)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
} |