namespace RecipeModule.Dialogs.ViewModels; internal partial class JobRecipeEditViewModel : ObservableObject, IDialogAware { public DialogCloseListener RequestClose { get; } [ObservableProperty] private string? _Title; [ObservableProperty] private ImageSource? _ImageSource; [ObservableProperty] private ObservableCollection? _TempTest; public bool CanCloseDialog() { return true; } public void OnDialogClosed() { } public void OnDialogOpened(IDialogParameters parameters) { this.Title = "Job Setting"; this.ImageSource = (DrawingImage)Application.Current.Resources["Icon_Recipe"]; } }