ParaTempProfileEditViewModel.cs 682 B

1234567891011121314151617181920212223242526272829303132
  1. 
  2. namespace ParameterModule.Pops.ViewModels;
  3. internal partial class ParaTempProfileEditViewModel : ObservableObject, IPopAware
  4. {
  5. public ParaTempProfileEditViewModel()
  6. {
  7. for (int i = 1; i <= 3; i++)
  8. this.TempProfile.Add(new($"Table {i}"));
  9. }
  10. public ImageSource? ImageSource { get; set; }
  11. public string? Title { get; set; } = "Temp Profile Edit";
  12. public Action? RequestClose { get; set; }
  13. [ObservableProperty]
  14. private ObservableCollection<TempProfileInfo> _TempProfile = [];
  15. public bool CanClose()
  16. {
  17. return true;
  18. }
  19. public void OnClose()
  20. {
  21. }
  22. public void OnPop(object? state)
  23. {
  24. }
  25. }