WaferRobotModifyViewModel.cs 643 B

12345678910111213141516171819202122232425262728293031323334
  1. using CommunityToolkit.Mvvm.Input;
  2. namespace SummaryModule.Dialogs.ViewModels;
  3. internal partial class WaferRobotModifyViewModel : ObservableObject, IDialogAware
  4. {
  5. public DialogCloseListener RequestClose { get; }
  6. [ObservableProperty]
  7. private string? _Title = "WaferRobot Wafer";
  8. [ObservableProperty]
  9. private ImageSource? _ImageSource;
  10. public bool CanCloseDialog()
  11. {
  12. return true;
  13. }
  14. public void OnDialogClosed()
  15. {
  16. }
  17. public void OnDialogOpened(IDialogParameters parameters)
  18. {
  19. }
  20. [RelayCommand]
  21. private void Close()
  22. {
  23. this.RequestClose.Invoke();
  24. }
  25. }