diff --git a/HueUWP/SettingsViewModel.cs b/HueUWP/SettingsViewModel.cs
index b579e40..19f1975 100644
--- a/HueUWP/SettingsViewModel.cs
+++ b/HueUWP/SettingsViewModel.cs
@@ -20,19 +20,25 @@ namespace HueUWP
public string IP
{
- get { Debug.WriteLine(App.LOCAL_SETTINGS.Values["ip"]); return App.LOCAL_SETTINGS.Values["ip"] as string; }
+ get { return App.LOCAL_SETTINGS.Values["ip"] as string; }
set { App.LOCAL_SETTINGS.Values["ip"] = value; NotifyPropertyChanged(nameof(IP)); }
}
public string PORT
{
- get { Debug.WriteLine(App.LOCAL_SETTINGS.Values["port"]); return Convert.ToInt32(App.LOCAL_SETTINGS.Values["port"]).ToString(); }
+ get { return Convert.ToInt32(App.LOCAL_SETTINGS.Values["port"]).ToString(); }
set { App.LOCAL_SETTINGS.Values["port"] = int.Parse(value); NotifyPropertyChanged(nameof(PORT)); }
}
+ public bool AUTOREFRESH
+ {
+ get { return (bool)(App.LOCAL_SETTINGS.Values["autorefresh"]); }
+ set { App.LOCAL_SETTINGS.Values["autorefresh"] = value; NotifyPropertyChanged(nameof(AUTOREFRESH)); }
+ }
+
public string ID
{
- get { Debug.WriteLine(App.LOCAL_SETTINGS.Values["id"]); return App.LOCAL_SETTINGS.Values["id"] as string; }
+ get { return App.LOCAL_SETTINGS.Values["id"] as string; }
}
public void Update()
diff --git a/HueUWP/Views/SettingsView.xaml b/HueUWP/Views/SettingsView.xaml
index 24057a7..4ffaa26 100644
--- a/HueUWP/Views/SettingsView.xaml
+++ b/HueUWP/Views/SettingsView.xaml
@@ -3,11 +3,16 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HueUWP.Views"
+ xmlns:convert="using:HueUWP.Helpers"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
+
+
+
+
@@ -18,30 +23,43 @@
Settings
-
-
- Server IP
-
-
-
- Server Port
-
-
-
- User ID
-
-
-
-
-
-
+
+
+
+
+
+ Automatic Refreshing
+
+ Off
+ On
+
-
-
+
+
+ Server IP
+
+
+
+ Server Port
+
+
+
+ User ID
+
+
+
+
+
+
+
+
+
+
+