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"); + } + } +}