-
Notifications
You must be signed in to change notification settings - Fork 1
/
About.xaml.cs
42 lines (34 loc) · 941 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
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace Aml.Editor.Plugin
{
/// <summary>
/// Interaction logic for About.xaml
/// </summary>
public partial class About : Window
{
public About()
{
this.DataContext = this;
InitializeComponent();
var assembly = Assembly.GetCallingAssembly();
txtVersion.Text = "Version "+ assembly.GetName().Version.ToString();
}
private void Close_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
public string Version
{
get;
set;
}
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
System.Diagnostics.Process.Start(e.Uri.ToString());
}
}
}