From 658154aca7d5f1fcb87942031a4f56e96efa93aa Mon Sep 17 00:00:00 2001 From: home-PC Date: Tue, 19 May 2026 01:30:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(app):=20=E5=88=9D=E5=A7=8B=E5=8C=96=20Omni?= =?UTF-8?q?Notify=20=E6=B5=8B=E8=AF=95=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 创建基于 .NET 8 WPF 的桌面测试程序,支持配置通知接口、频道、标题和正文,并通过内置模板快速发送不同类型的测试消息。 实现服务检测、单次发送、自动定时发送、模板轮换、批量发送、非法频道切换和发送日志记录,便于验证 OmniNotify 本地消息 API 的基础行为与异常场景。 Initial-Commit: true --- .gitignore | 2 + App.xaml | 9 ++ App.xaml.cs | 13 +++ AssemblyInfo.cs | 10 ++ MainWindow.xaml | 178 ++++++++++++++++++++++++++++ MainWindow.xaml.cs | 261 ++++++++++++++++++++++++++++++++++++++++++ OmniNotifyTest.csproj | 11 ++ README.md | 37 ++++++ 8 files changed, 521 insertions(+) create mode 100644 .gitignore create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 AssemblyInfo.cs create mode 100644 MainWindow.xaml create mode 100644 MainWindow.xaml.cs create mode 100644 OmniNotifyTest.csproj create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd42ee3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin/ +obj/ diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..f272f49 --- /dev/null +++ b/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..b0f9868 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,13 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace OmniNotifyTest; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} + diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs new file mode 100644 index 0000000..cc29e7f --- /dev/null +++ b/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly:ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..2a98cd8 --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + +