diff --git a/PetWash.Api/petwash.db-shm b/PetWash.Api/petwash.db-shm deleted file mode 100644 index fe9ac28..0000000 Binary files a/PetWash.Api/petwash.db-shm and /dev/null differ diff --git a/PetWash.Api/petwash.db-wal b/PetWash.Api/petwash.db-wal deleted file mode 100644 index e69de29..0000000 diff --git a/PetWashControl/Resources/Styles.xaml b/PetWashControl/Resources/Styles.xaml index 87ee0c0..1a309fc 100644 --- a/PetWashControl/Resources/Styles.xaml +++ b/PetWashControl/Resources/Styles.xaml @@ -176,4 +176,36 @@ + + + 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"/> - +