| 12345678910111213141516171819202122232425262728293031 |
- using CommunityToolkit.Mvvm.Input;
- using System.Windows.Media;
- namespace SummaryModule.Pops.Main;
- public partial class RecipeCommandViewModel : ObservableObject, IPopAware
- {
- public string? Title { get; set; } = "PM Command";
- public Action? RequestClose { get; set; }
- public ImageSource? ImageSource { get; set; } = (DrawingImage)Application.Current.Resources["Icon_Recipe"];
- public bool CanClose()
- {
- return true;
- }
- public void OnClose()
- {
- }
- public void OnPop(object? state)
- {
- }
- [RelayCommand]
- private void Close()
- {
- this.RequestClose?.Invoke();
- }
- }
|