| 123456789101112131415161718192021222324252627282930313233343536 |
- namespace RecipeModule.Dialogs.ViewModels;
- internal partial class RecipeEditViewModel : ObservableObject, IDialogAware
- {
- public DialogCloseListener RequestClose { get; }
- [ObservableProperty]
- private string? _Title;
- [ObservableProperty]
- private ImageSource? _ImageSource;
- [ObservableProperty]
- private ObservableCollection<string>? _TempTest;
- public bool CanCloseDialog()
- {
- return true;
- }
- public void OnDialogClosed()
- {
- }
- public void OnDialogOpened(IDialogParameters parameters)
- {
- this.Title = "Recipe Edit";
- this.ImageSource = (DrawingImage)Application.Current.Resources["Icon_Recipe"];
- this.TempTest = [];
- TempTest.Add("0 StandBy");
- TempTest.Add("1 Name");
- TempTest.Add("2 End");
- }
- }
|