-
Notifications
You must be signed in to change notification settings - Fork 1
/
About.xaml.cs
29 lines (27 loc) · 917 Bytes
/
About.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Diagnostics;
using System.Text;
using System.Windows.Controls;
namespace PaperWriting
{
/// <summary>
/// About.xaml 的交互逻辑
/// </summary>
public partial class About : Page
{
public About()
{
InitializeComponent();
var version_text = new StringBuilder()
.Append("加载项版本:")
.AppendLine(System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString())
.Append("Microsoft Word产品版本:")
.Append(System.Windows.Forms.Application.ProductVersion);
this.versionLabel.Text = version_text.ToString();
}
private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Process.Start(e.Uri.ToString());
e.Handled = true;
}
}
}