From f379378c6101f575b187f20b70df05fe8f5aa040 Mon Sep 17 00:00:00 2001 From: "GukSang.Jin" Date: Fri, 27 Feb 2026 10:38:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PetWash.Api/petwash.db-shm | Bin 32768 -> 0 bytes PetWash.Api/petwash.db-wal | 0 PetWashControl/Resources/Styles.xaml | 32 +++ PetWashControl/ViewModels/MainViewModel.cs | 61 ++++++ PetWashControl/Views/MainWindow.xaml | 232 +++++++-------------- 5 files changed, 169 insertions(+), 156 deletions(-) delete mode 100644 PetWash.Api/petwash.db-shm delete mode 100644 PetWash.Api/petwash.db-wal diff --git a/PetWash.Api/petwash.db-shm b/PetWash.Api/petwash.db-shm deleted file mode 100644 index fe9ac2845eca6fe6da8a63cd096d9cf9e24ece10..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32768 zcmeIuAr62r3 + + + diff --git a/PetWashControl/ViewModels/MainViewModel.cs b/PetWashControl/ViewModels/MainViewModel.cs index 4f8c9f0..0f299f8 100644 --- a/PetWashControl/ViewModels/MainViewModel.cs +++ b/PetWashControl/ViewModels/MainViewModel.cs @@ -319,6 +319,67 @@ public partial class MainViewModel : ObservableObject } } + // 参数调整命令 + [RelayCommand] + private void IncreaseFirstSprayWater() => FirstSprayWaterTime = Math.Min(FirstSprayWaterTime + 1, 60); + + [RelayCommand] + private void DecreaseFirstSprayWater() => FirstSprayWaterTime = Math.Max(FirstSprayWaterTime - 1, 0); + + [RelayCommand] + private void IncreaseSprayShampoo1() => SprayShampoo1Time = Math.Min(SprayShampoo1Time + 1, 60); + + [RelayCommand] + private void DecreaseSprayShampoo1() => SprayShampoo1Time = Math.Max(SprayShampoo1Time - 1, 0); + + [RelayCommand] + private void IncreaseAfterShampoo1Spray() => AfterShampoo1SprayTime = Math.Min(AfterShampoo1SprayTime + 1, 60); + + [RelayCommand] + private void DecreaseAfterShampoo1Spray() => AfterShampoo1SprayTime = Math.Max(AfterShampoo1SprayTime - 1, 0); + + [RelayCommand] + private void IncreaseSprayShampoo2() => SprayShampoo2Time = Math.Min(SprayShampoo2Time + 1, 60); + + [RelayCommand] + private void DecreaseSprayShampoo2() => SprayShampoo2Time = Math.Max(SprayShampoo2Time - 1, 0); + + [RelayCommand] + private void IncreaseAfterShampoo2Spray() => AfterShampoo2SprayTime = Math.Min(AfterShampoo2SprayTime + 1, 60); + + [RelayCommand] + private void DecreaseAfterShampoo2Spray() => AfterShampoo2SprayTime = Math.Max(AfterShampoo2SprayTime - 1, 0); + + [RelayCommand] + private void IncreaseSprayShampoo3() => SprayShampoo3Time = Math.Min(SprayShampoo3Time + 1, 60); + + [RelayCommand] + private void DecreaseSprayShampoo3() => SprayShampoo3Time = Math.Max(SprayShampoo3Time - 1, 0); + + [RelayCommand] + private void IncreaseAfterShampoo3Spray() => AfterShampoo3SprayTime = Math.Min(AfterShampoo3SprayTime + 1, 60); + + [RelayCommand] + private void DecreaseAfterShampoo3Spray() => AfterShampoo3SprayTime = Math.Max(AfterShampoo3SprayTime - 1, 0); + + [RelayCommand] + private void IncreaseColdAir() => ColdAirTime = Math.Min(ColdAirTime + 1, 60); + + [RelayCommand] + private void DecreaseColdAir() => ColdAirTime = Math.Max(ColdAirTime - 1, 0); + + [RelayCommand] + private void IncreaseHotAir() => HotAirTime = Math.Min(HotAirTime + 1, 60); + + [RelayCommand] + private void DecreaseHotAir() => HotAirTime = Math.Max(HotAirTime - 1, 0); + + [RelayCommand] + private void IncreaseUvSterilization() => UvSterilizationTime = Math.Min(UvSterilizationTime + 1, 60); + + [RelayCommand] + private void DecreaseUvSterilization() => UvSterilizationTime = Math.Max(UvSterilizationTime - 1, 0); + [RelayCommand] private void BackToIdle() { diff --git a/PetWashControl/Views/MainWindow.xaml b/PetWashControl/Views/MainWindow.xaml index 1daea55..4f7d9ca 100644 --- a/PetWashControl/Views/MainWindow.xaml +++ b/PetWashControl/Views/MainWindow.xaml @@ -1575,21 +1575,31 @@ Foreground="#424242" VerticalAlignment="Center"/> - +