From: Stricted Date: Tue, 12 Jan 2016 17:23:40 +0000 (+0100) Subject: fix #28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a0bd4e9690d5fe0b657b2227315c0019fba20e7;p=GitHub%2FStricted%2FSpeedportHybridControl.git fix #28 --- diff --git a/SpeedportHybridControl/PageModel/LteInfoModel.cs b/SpeedportHybridControl/PageModel/LteInfoModel.cs index 3a0a0df..64b05ba 100644 --- a/SpeedportHybridControl/PageModel/LteInfoModel.cs +++ b/SpeedportHybridControl/PageModel/LteInfoModel.cs @@ -93,6 +93,9 @@ namespace SpeedportHybridControl.PageModel { _ltepopup.Show(); StopTimer(); } + + ltepopupModel lm = Application.Current.FindResource("ltepopupModel") as ltepopupModel; + lm.StartTimer(); } public bool AutoReload { diff --git a/SpeedportHybridControl/PageModel/MainWindowModel.cs b/SpeedportHybridControl/PageModel/MainWindowModel.cs index 7742856..d254c37 100644 --- a/SpeedportHybridControl/PageModel/MainWindowModel.cs +++ b/SpeedportHybridControl/PageModel/MainWindowModel.cs @@ -10,7 +10,7 @@ using System.Windows; namespace SpeedportHybridControl.PageModel { class MainWindowModel : SuperViewModel { - public const string VERSION = "1.0-pre9"; //TODO: change this later + public const string VERSION = "1.0-pre11"; private string _loginButtonContent = "Login"; diff --git a/SpeedportHybridControl/PageModel/ltepopupModel.cs b/SpeedportHybridControl/PageModel/ltepopupModel.cs index 07e6ce8..adcc978 100644 --- a/SpeedportHybridControl/PageModel/ltepopupModel.cs +++ b/SpeedportHybridControl/PageModel/ltepopupModel.cs @@ -130,7 +130,7 @@ namespace SpeedportHybridControl.PageModel { } } - private void StartTimer () { + public void StartTimer () { _timer = new System.Timers.Timer { Interval = 1000, // every second }; @@ -201,8 +201,6 @@ namespace SpeedportHybridControl.PageModel { ds2.SetYMapping(y => y.Data); RsrpGraph = ds2; - - StartTimer(); } } } diff --git a/SpeedportHybridControl/page/LoginPage.xaml b/SpeedportHybridControl/page/LoginPage.xaml index a67cdad..b3e1f59 100644 --- a/SpeedportHybridControl/page/LoginPage.xaml +++ b/SpeedportHybridControl/page/LoginPage.xaml @@ -15,7 +15,7 @@ - +