From 939e2b4444744ae935cd98c9b7567eccbcd7dd58 Mon Sep 17 00:00:00 2001 From: Michael Harding Date: Wed, 21 Mar 2018 10:13:14 -0400 Subject: [PATCH] SPARK-901: Link to website in About --- src/client/spark/Daemons/AboutDaemon.cs | 5 ++++- src/client/spark/view/Shell/About.xaml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/spark/Daemons/AboutDaemon.cs b/src/client/spark/Daemons/AboutDaemon.cs index d0499e0be..0a75c1572 100644 --- a/src/client/spark/Daemons/AboutDaemon.cs +++ b/src/client/spark/Daemons/AboutDaemon.cs @@ -45,7 +45,10 @@ namespace bts.ui { about.CommandBindings.Add(new CommandBinding(ApplicationCommands.Open, (arg, e) => { if (e.Parameter != null) { string param = e.Parameter.ToString(); - if (!string.IsNullOrEmpty(param)) { + if (!string.IsNullOrEmpty(param) && param.IndexOf("http") == 0) { + Process.Start(param); + } + else if (!string.IsNullOrEmpty(param)) { Uri address = new Uri("bts://" + param); _browser.Pages.Add(address); } diff --git a/src/client/spark/view/Shell/About.xaml b/src/client/spark/view/Shell/About.xaml index f3149b4c7..1d45fa776 100644 --- a/src/client/spark/view/Shell/About.xaml +++ b/src/client/spark/view/Shell/About.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - Width="400" Height="248" + Width="400" Height="265" xmlns:ui="clr-namespace:mbts.ui" xmlns:mbts="clr-namespace:mbts.ui" WindowStartupLocation="CenterScreen" Style="{StaticResource BTSWindow}" ui:WindowStyle.ShowCloseButton="True" ui:WindowStyle.ShowMinimizeButton="False"> @@ -23,6 +23,7 @@ Blue Trading Systems delivers comprehensive trading solutions for professional derivatives traders. + www.bluetradingsystems.com © Blue Trading Systems 2013 - 2018