From 2eed9072832bcdc96c97d740ce901987d8d2e65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A3=8A?= Date: Sun, 9 Oct 2022 15:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=81=94=E7=B3=BB=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=92=8C=E6=8D=90=E8=B5=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- txkt_m3u8.sqlite_ts/HelpWindow.xaml | 41 ++++++++++ txkt_m3u8.sqlite_ts/HelpWindow.xaml.cs | 43 ++++++++++ txkt_m3u8.sqlite_ts/MainWindow.xaml | 3 + txkt_m3u8.sqlite_ts/MainWindow.xaml.cs | 20 +++++ .../Properties/AssemblyInfo.cs | 4 +- .../Properties/Resources.Designer.cs | 74 ++++++++++-------- txkt_m3u8.sqlite_ts/Properties/Resources.resx | 20 +++-- .../Resource/donate/weixin.png | Bin 0 -> 123897 bytes .../Resource/donate/zhifubao.png | Bin 0 -> 115896 bytes .../txkt_m3u8.sqlite_ts.csproj | 12 +++ 10 files changed, 179 insertions(+), 38 deletions(-) create mode 100644 txkt_m3u8.sqlite_ts/HelpWindow.xaml create mode 100644 txkt_m3u8.sqlite_ts/HelpWindow.xaml.cs create mode 100644 txkt_m3u8.sqlite_ts/Resource/donate/weixin.png create mode 100644 txkt_m3u8.sqlite_ts/Resource/donate/zhifubao.png diff --git a/txkt_m3u8.sqlite_ts/HelpWindow.xaml b/txkt_m3u8.sqlite_ts/HelpWindow.xaml new file mode 100644 index 0000000..df89d9c --- /dev/null +++ b/txkt_m3u8.sqlite_ts/HelpWindow.xaml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/txkt_m3u8.sqlite_ts/HelpWindow.xaml.cs b/txkt_m3u8.sqlite_ts/HelpWindow.xaml.cs new file mode 100644 index 0000000..4e00f03 --- /dev/null +++ b/txkt_m3u8.sqlite_ts/HelpWindow.xaml.cs @@ -0,0 +1,43 @@ +using log4net; +using System; +using System.Windows; + +namespace txkt_m3u8.sqlite_ts +{ + /// + /// HelpWindow.xaml 的交互逻辑 + /// + public partial class HelpWindow : Window + { + private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + /// + /// 单例 + /// + private static HelpWindow _instance; + + public HelpWindow() + { + InitializeComponent(); + } + + /// + /// 创建系统参数设置窗体实例 + /// + /// + public static HelpWindow CreateInstance() + { + return _instance ?? (_instance = new HelpWindow()); + } + + /// + /// 窗体关闭 + /// + /// + /// + private void Window_Closed(object sender, EventArgs e) + { + _instance.Topmost = false; + _instance = null; + } + } +} diff --git a/txkt_m3u8.sqlite_ts/MainWindow.xaml b/txkt_m3u8.sqlite_ts/MainWindow.xaml index 1c4cd35..0c8c422 100644 --- a/txkt_m3u8.sqlite_ts/MainWindow.xaml +++ b/txkt_m3u8.sqlite_ts/MainWindow.xaml @@ -39,6 +39,9 @@ + +