From ac174bb7174a64a37ad6fc9541cfd8e11d7969c4 Mon Sep 17 00:00:00 2001 From: Flier Date: Thu, 26 Jul 2018 14:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5About=E9=A0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConvertZZ/ConvertZZ.csproj | 7 +++++++ ConvertZZ/MainWindow.xaml | 1 + ConvertZZ/MainWindow.xaml.cs | 8 ++++++-- ConvertZZ/Window_About.xaml | 26 ++++++++++++++++++++++++++ ConvertZZ/Window_About.xaml.cs | 22 ++++++++++++++++++++++ 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 ConvertZZ/Window_About.xaml create mode 100644 ConvertZZ/Window_About.xaml.cs diff --git a/ConvertZZ/ConvertZZ.csproj b/ConvertZZ/ConvertZZ.csproj index 4b2cccf..1b2b206 100644 --- a/ConvertZZ/ConvertZZ.csproj +++ b/ConvertZZ/ConvertZZ.csproj @@ -108,6 +108,9 @@ Page_File.xaml + + Window_About.xaml + Window_DialogHost.xaml @@ -147,6 +150,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/ConvertZZ/MainWindow.xaml b/ConvertZZ/MainWindow.xaml index ec1be88..3f2514c 100644 --- a/ConvertZZ/MainWindow.xaml +++ b/ConvertZZ/MainWindow.xaml @@ -49,6 +49,7 @@ + diff --git a/ConvertZZ/MainWindow.xaml.cs b/ConvertZZ/MainWindow.xaml.cs index afbb5ee..d4b1dc2 100644 --- a/ConvertZZ/MainWindow.xaml.cs +++ b/ConvertZZ/MainWindow.xaml.cs @@ -88,6 +88,11 @@ private void Window_MouseDown(object sender, MouseButtonEventArgs e) this.DragMove(); } } + private void About_Click(object sender, RoutedEventArgs e) + { + Window_About window_About = new Window_About(); + window_About.ShowDialog(); + } private void Setting_Click(object sender, RoutedEventArgs e) { UnRegAllHotkey(); @@ -101,8 +106,7 @@ private void Exit_Click(object sender, RoutedEventArgs e) App.nIcon.Visible = false; App.nIcon.Dispose(); Environment.Exit(0); - } - + } private void Window_MouseUp(object sender, MouseButtonEventArgs e) { ContextMenu NotifyIconMenu = (ContextMenu)this.FindResource("NotifyIconMenu"); diff --git a/ConvertZZ/Window_About.xaml b/ConvertZZ/Window_About.xaml new file mode 100644 index 0000000..25e207b --- /dev/null +++ b/ConvertZZ/Window_About.xaml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + diff --git a/ConvertZZ/Window_About.xaml.cs b/ConvertZZ/Window_About.xaml.cs new file mode 100644 index 0000000..fc02954 --- /dev/null +++ b/ConvertZZ/Window_About.xaml.cs @@ -0,0 +1,22 @@ +using System.Diagnostics; +using System.Windows; +using System.Windows.Input; + +namespace ConvertZZ +{ + /// + /// Window_About.xaml 的互動邏輯 + /// + public partial class Window_About : Window + { + public Window_About() + { + InitializeComponent(); + } + + private void Label_MouseUp(object sender, MouseButtonEventArgs e) + { + Process.Start("https://github.com/flier268/ConvertZZ"); + } + } +}