From 76c594e14aa4e986d6e1f56bf192125ce6bb8604 Mon Sep 17 00:00:00 2001 From: "GukSang.Jin" Date: Thu, 26 Feb 2026 13:49:38 +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 0 -> 32768 bytes PetWash.Api/petwash.db-wal | 0 PetWashControl/ViewModels/MainViewModel.cs | 42 +++++++++++++ PetWashControl/Views/MainWindow.xaml | 66 +++++++++++++++++++-- 4 files changed, 102 insertions(+), 6 deletions(-) create mode 100644 PetWash.Api/petwash.db-shm create mode 100644 PetWash.Api/petwash.db-wal diff --git a/PetWash.Api/petwash.db-shm b/PetWash.Api/petwash.db-shm new file mode 100644 index 0000000000000000000000000000000000000000..fe9ac2845eca6fe6da8a63cd096d9cf9e24ece10 GIT binary patch literal 32768 zcmeIuAr62r3 + { + Application.Current.Dispatcher.Invoke(() => + { + _currentImageIndex = (_currentImageIndex + 1) % _carouselImages.Length; + CurrentCarouselImage = _carouselImages[_currentImageIndex]; + }); + }; + _carouselTimer.Start(); + + // 初始化时钟定时器(每秒更新) + _clockTimer = new System.Timers.Timer(1000); + _clockTimer.Elapsed += (s, e) => + { + Application.Current.Dispatcher.Invoke(() => + { + var now = DateTime.Now; + CurrentDateTime = now.ToString("yyyy-MM-dd HH:mm:ss"); + CurrentDayOfWeek = now.ToString("dddd", new System.Globalization.CultureInfo("zh-CN")); + }); + }; + _clockTimer.Start(); } private void InitializeWashSteps() diff --git a/PetWashControl/Views/MainWindow.xaml b/PetWashControl/Views/MainWindow.xaml index 82e5544..b8826c7 100644 --- a/PetWashControl/Views/MainWindow.xaml +++ b/PetWashControl/Views/MainWindow.xaml @@ -105,6 +105,34 @@ + + + + + + + + + + + + + + + +