From 3a471b915638005dc9e8b97c9d58513bf840555b Mon Sep 17 00:00:00 2001 From: Kelly Elton Date: Tue, 6 Aug 2019 20:50:24 -0500 Subject: [PATCH] Add NewVersion bar for 3.4 --- octgnFX/Octgn/Controls/NewVersion.xaml | 25 +++++++++++++++++++ octgnFX/Octgn/Controls/NewVersion.xaml.cs | 15 ++++++++++++ octgnFX/Octgn/Octgn.csproj | 7 ++++++ octgnFX/Octgn/Windows/Main.xaml | 29 ++++++++++++----------- 4 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 octgnFX/Octgn/Controls/NewVersion.xaml create mode 100644 octgnFX/Octgn/Controls/NewVersion.xaml.cs diff --git a/octgnFX/Octgn/Controls/NewVersion.xaml b/octgnFX/Octgn/Controls/NewVersion.xaml new file mode 100644 index 0000000000..265a5682e2 --- /dev/null +++ b/octgnFX/Octgn/Controls/NewVersion.xaml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + diff --git a/octgnFX/Octgn/Controls/NewVersion.xaml.cs b/octgnFX/Octgn/Controls/NewVersion.xaml.cs new file mode 100644 index 0000000000..90248fdc1c --- /dev/null +++ b/octgnFX/Octgn/Controls/NewVersion.xaml.cs @@ -0,0 +1,15 @@ +using System; + +namespace Octgn.Controls +{ + public partial class NewVersionBar + { + public NewVersionBar() { + InitializeComponent(); + } + + private void TextBlock_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { + Program.LaunchUrl(AppConfig.WebsitePath); + } + } +} diff --git a/octgnFX/Octgn/Octgn.csproj b/octgnFX/Octgn/Octgn.csproj index 09281a8317..085597188c 100644 --- a/octgnFX/Octgn/Octgn.csproj +++ b/octgnFX/Octgn/Octgn.csproj @@ -300,6 +300,9 @@ ConnectOfflineGame.xaml + + NewVersion.xaml + MissedMessagesBreak.xaml @@ -899,6 +902,10 @@ MSBuild:Compile Designer + + MSBuild:Compile + Designer + Designer MSBuild:Compile diff --git a/octgnFX/Octgn/Windows/Main.xaml b/octgnFX/Octgn/Windows/Main.xaml index 3d7a20375c..3c0511e63b 100644 --- a/octgnFX/Octgn/Windows/Main.xaml +++ b/octgnFX/Octgn/Windows/Main.xaml @@ -25,15 +25,15 @@ - - - - - - - - - + + + + + + + + + @@ -47,9 +47,9 @@ - - - + + + @@ -59,8 +59,9 @@ - - + + +