| 1234567891011121314151617181920212223242526272829303132333435 |
- 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();
- }
- }
|