45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
// Copyright (c) 2017 schick Informatik
|
|
// Description:
|
|
//
|
|
|
|
using System.Diagnostics;
|
|
using System.Reflection;
|
|
using System.Windows;
|
|
|
|
namespace ENI2.EditControls
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for AboutDialog.xaml
|
|
/// </summary>
|
|
public partial class AboutDialog : Window
|
|
{
|
|
public AboutDialog()
|
|
{
|
|
InitializeComponent();
|
|
Loaded += AboutDialog_Loaded;
|
|
}
|
|
|
|
private void AboutDialog_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
var versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location);
|
|
textProductVersion.Text = "V. " + versionInfo.ProductVersion;
|
|
textProductName.Text = versionInfo.ProductName;
|
|
hyperlinkText.Text = versionInfo.LegalCopyright;
|
|
textProductComponents.Text = "Xceed.Wpf Toolkit Community Ed.,\nlog4net\n";
|
|
|
|
}
|
|
|
|
private void textProductCopyright_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
|
|
{
|
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
private void buttonOK_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|