using System.Diagnostics; using System.Reflection; using System.Windows; using System.Windows.Navigation; namespace SourceGit.UI { /// /// About dialog /// public partial class About : Window { /// /// Current app version /// public string Version { get { return FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion; } } /// /// Constructor /// public About() { InitializeComponent(); } /// /// Open source code link /// /// /// private void OpenSource(object sender, RequestNavigateEventArgs e) { Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri)); e.Handled = true; } /// /// Close this dialog /// private void Quit(object sender, RoutedEventArgs e) { Close(); } } }