From cb5c895d33d789336c474f403fc565d52020860d Mon Sep 17 00:00:00 2001 From: yangwx Date: Wed, 12 Mar 2025 23:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=9C=E7=A8=8B=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Commands/ClosingWindowBehavior.cs | 2 +- MainWindow.xaml | 10 ++-- MainWindow.xaml.cs | 2 - README.md | 5 +- Services/IChatService.cs | 14 ----- Services/OllamaService.cs | 95 ------------------------------- Services/OpenAIService.cs | 54 ------------------ Utilities/AsyncRelayCommand.cs | 26 --------- ViewModels/MainViewModel.cs | 4 +- ViewModels/SettingViewModel.cs | 21 ++++++- ViewModels/ShareOllamaObject.cs | 27 +++++++-- Views/ChatMdView.xaml | 13 ++--- Views/SettingView.xaml | 65 +++++++++++---------- Views/Style/ButtonStyle.xaml | 7 ++- Views/Style/TextBoxStyle.xaml | 5 ++ YwxApp.AiChat.csproj | 2 +- 16 files changed, 103 insertions(+), 249 deletions(-) delete mode 100644 Services/IChatService.cs delete mode 100644 Services/OllamaService.cs delete mode 100644 Services/OpenAIService.cs delete mode 100644 Utilities/AsyncRelayCommand.cs diff --git a/Commands/ClosingWindowBehavior.cs b/Commands/ClosingWindowBehavior.cs index eaa2dd7..0a98bec 100644 --- a/Commands/ClosingWindowBehavior.cs +++ b/Commands/ClosingWindowBehavior.cs @@ -1,8 +1,8 @@  +using Microsoft.Xaml.Behaviors; using System.ComponentModel; using System.Windows; using System.Windows.Input; -using System.Windows.Interactivity; namespace YwxApp.AiChat.Commands { diff --git a/MainWindow.xaml b/MainWindow.xaml index c49f80f..d40905d 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -1,6 +1,6 @@  - - + + - + @@ -52,7 +52,7 @@ - +