(GUI): added site link to about box.

This commit is contained in:
morkt
2016-05-27 12:12:28 +04:00
parent ddd5c89cd1
commit f9c39e87a3
5 changed files with 44 additions and 2 deletions

View File

@@ -22,11 +22,13 @@
//
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Windows;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Navigation;
using GARbro.GUI.Properties;
using GARbro.GUI.Strings;
@@ -184,6 +186,24 @@ namespace GARbro.GUI
}
}
#endregion
private void Hyperlink_RequestNavigate (object sender, RequestNavigateEventArgs e)
{
try
{
if (e.Uri.IsAbsoluteUri)
{
Process.Start (new ProcessStartInfo (e.Uri.AbsoluteUri));
e.Handled = true;
}
else
throw new ApplicationException ("URI is not absolute");
}
catch (Exception X)
{
Trace.WriteLine ("Link navigation failed: "+X.Message, e.Uri.ToString());
}
}
}
public class BooleanToVisibiltyConverter : IValueConverter