MSLoaderCommandViewModel.cs 734 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Media;
  7. namespace MaintainModule.Pops.ManualSet;
  8. internal partial class MSLoaderCommandViewModel : ObservableObject, IPopAware
  9. {
  10. public ImageSource? ImageSource { get; set; }
  11. public string? Title { get; set; } = "Loader Command";
  12. public Action? RequestClose { get; set; }
  13. public bool CanClose()
  14. {
  15. return true;
  16. }
  17. public void OnClose()
  18. {
  19. }
  20. public void OnPop(object? state)
  21. {
  22. }
  23. [RelayCommand]
  24. private void Close()
  25. {
  26. this.RequestClose?.Invoke();
  27. }
  28. [RelayCommand]
  29. private void Operation()
  30. {
  31. }
  32. }