fix ltepopup
authorStricted <info@stricted.de>
Tue, 12 Jan 2016 22:42:35 +0000 (23:42 +0100)
committerStricted <info@stricted.de>
Tue, 12 Jan 2016 22:42:35 +0000 (23:42 +0100)
SpeedportHybridControl/PageModel/AboutPageModel.cs
SpeedportHybridControl/PageModel/LteInfoModel.cs

index 0346e25d207955b5290d471ce4f0d33366a8b6dd..93541d6902f7c4a0189b51eaf58b94c5c06ede5a 100644 (file)
@@ -7,28 +7,29 @@ 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); }
+                       get { return MainWindowModel.VERSION; }
                }
 
-               public DelegateCommand DonateCommand {
+               public DelegateCommand DonateCommand
+               {
                        get { return _donateCommand; }
                        set { SetProperty(ref _donateCommand, value); }
                }
 
-               public DelegateCommand BugtrackerCommand {
+               public DelegateCommand BugtrackerCommand
+               {
                        get { return _bugtrackerCommand; }
                        set { SetProperty(ref _bugtrackerCommand, value); }
                }
 
-               public DelegateCommand UpdateCommand {
+               public DelegateCommand UpdateCommand
+               {
                        get { return _updateCommand; }
                        set { SetProperty(ref _updateCommand, value); }
                }
@@ -54,8 +55,6 @@ namespace SpeedportHybridControl.PageModel {
                        DonateCommand = new DelegateCommand(new Action(OnDonateCommandExecute));
                        BugtrackerCommand = new DelegateCommand(new Action(OnBugtrackerCommandExecute));
                        UpdateCommand = new DelegateCommand(new Action(OnUpdateCommandExecute));
-
-                       version = MainWindowModel.VERSION;
                }
        }
 }
index 64b05babf8aed7e63b121f5670648431afc01ed1..4a8a8a50ec91b12e44ff7642ed9df78677c8924b 100644 (file)
@@ -92,10 +92,10 @@ namespace SpeedportHybridControl.PageModel {
                        if (_ltepopup.Visibility.Equals(Visibility.Visible).Equals(false)) {
                                _ltepopup.Show();
                                StopTimer();
-                       }
 
-                       ltepopupModel lm = Application.Current.FindResource("ltepopupModel") as ltepopupModel;
-                       lm.StartTimer();
+                               ltepopupModel lm = Application.Current.FindResource("ltepopupModel") as ltepopupModel;
+                               lm.StartTimer();
+                       }
                }
 
                public bool AutoReload {