using System.Diagnostics;
using System.Reflection;
using System.Windows;
using System.Windows.Navigation;
namespace SourceGit.UI {
///
/// About dialog
///
public partial class About : Window {
///
/// Constructor
///
public About() {
InitializeComponent();
var asm = Assembly.GetExecutingAssembly().GetName();
version.Content = $"VERSION : v{asm.Version.Major}.{asm.Version.Minor}";
}
///
/// Open source code link
///
///
///
private void OpenSource(object sender, RequestNavigateEventArgs e) {
Process.Start(new ProcessStartInfo("cmd", $"/c start {e.Uri.AbsoluteUri}") { CreateNoWindow = true });
e.Handled = true;
}
///
/// Close this dialog
///
private void Quit(object sender, RoutedEventArgs e) {
Close();
}
}
}