BoatMaintianViewModel.cs 516 B

1234567891011121314151617181920212223242526
  1. namespace MaintainModule.ViewModels;
  2. internal partial class BoatMaintianViewModel(IBottomPopManager popManager) : ObservableObject
  3. {
  4. [ObservableProperty]
  5. private int _BoatPosition;
  6. [RelayCommand]
  7. private void MovetoPos(string para)
  8. {
  9. this.BoatPosition = para switch
  10. {
  11. "1" => 1,
  12. "2" => 2,
  13. "3" => 3,
  14. _ => 3
  15. };
  16. }
  17. [RelayCommand]
  18. private void BoatModify()
  19. {
  20. popManager.ShowPop("BoatWafer");
  21. }
  22. }