From 4497ef65255b7eca0df1ddb3761a753cb4f252a8 Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 12 Jan 2016 18:44:39 +0100 Subject: [PATCH] fix version on about page --- SpeedportHybridControl/PageModel/AboutPageModel.cs | 9 +++++++++ SpeedportHybridControl/page/AboutPage.xaml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/SpeedportHybridControl/PageModel/AboutPageModel.cs b/SpeedportHybridControl/PageModel/AboutPageModel.cs index 05e42d5..0346e25 100644 --- a/SpeedportHybridControl/PageModel/AboutPageModel.cs +++ b/SpeedportHybridControl/PageModel/AboutPageModel.cs @@ -7,10 +7,17 @@ using System.Windows; namespace SpeedportHybridControl.PageModel { class AboutPageModel : SuperViewModel { + private string _version; private DelegateCommand _donateCommand; private DelegateCommand _bugtrackerCommand; private DelegateCommand _updateCommand; + public string version + { + get { return _version; } + set { SetProperty(ref _version, value); } + } + public DelegateCommand DonateCommand { get { return _donateCommand; } set { SetProperty(ref _donateCommand, value); } @@ -47,6 +54,8 @@ namespace SpeedportHybridControl.PageModel { DonateCommand = new DelegateCommand(new Action(OnDonateCommandExecute)); BugtrackerCommand = new DelegateCommand(new Action(OnBugtrackerCommandExecute)); UpdateCommand = new DelegateCommand(new Action(OnUpdateCommandExecute)); + + version = MainWindowModel.VERSION; } } } diff --git a/SpeedportHybridControl/page/AboutPage.xaml b/SpeedportHybridControl/page/AboutPage.xaml index 405c994..4646af3 100644 --- a/SpeedportHybridControl/page/AboutPage.xaml +++ b/SpeedportHybridControl/page/AboutPage.xaml @@ -13,7 +13,7 @@ - +