LoadPopViewModel.cs 653 B

12345678910111213141516171819202122232425262728293031
  1. using DataVM;
  2. using System.Collections.ObjectModel;
  3. using System.Windows.Media;
  4. namespace JobModule.Pops.JobNormal;
  5. internal partial class LoadPopViewModel : ObservableObject, IPopAware
  6. {
  7. [ObservableProperty]
  8. private ObservableCollection<int>? _TempData;
  9. public ImageSource? ImageSource { get; set; }
  10. public string? Title { get; set; } = "Load";
  11. public Action? RequestClose { get; set; }
  12. public bool CanClose()
  13. {
  14. return true;
  15. }
  16. public void OnClose()
  17. {
  18. }
  19. public void OnPop(object? state)
  20. {
  21. TempData = [];
  22. for (int i = 0; i < 7; i++)
  23. TempData.Add(i);
  24. }
  25. }