using System.Windows.Shapes;

namespace ConfigFileManager.ViewModels.Dialog;

internal partial class RecipeFileViewModel : ObservableObject, IDialogAware
{
    public DialogCloseListener RequestClose { get; set; }
    [ObservableProperty]
    private string? _Title;
    public bool CanCloseDialog()
    {
        return true;
    }

    public void OnDialogClosed()
    {
    }

    public void OnDialogOpened(IDialogParameters parameters)
    {
        this.Title = "配方文件";
        this.Path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "Files", "Furnace", "Recipes", "Recipes", "Furnace");
    }

    [ObservableProperty]
    private string? _Path;

    [RelayCommand]
    private void Close()
    {
        this.RequestClose.Invoke();
    }

}
