Fixed correct Decimal/Comma usage

TheDumpap [2016-07-25 00:13:57]
Fixed correct Decimal/Comma usage

Fixed correct Decimal/Comma usage so that it will act alike on all
machines.
Filename
.vs/Pokemon Go Rocket API/v14/.suo
PokemonGo/RocketAPI/Window/App.config
PokemonGo/RocketAPI/Window/SettingsForm.cs
diff --git a/.vs/Pokemon Go Rocket API/v14/.suo b/.vs/Pokemon Go Rocket API/v14/.suo
index fa99e52..236b264 100644
Binary files a/.vs/Pokemon Go Rocket API/v14/.suo and b/.vs/Pokemon Go Rocket API/v14/.suo differ
diff --git a/PokemonGo/RocketAPI/Window/App.config b/PokemonGo/RocketAPI/Window/App.config
index 6b47702..f769fbf 100644
--- a/PokemonGo/RocketAPI/Window/App.config
+++ b/PokemonGo/RocketAPI/Window/App.config
@@ -19,9 +19,9 @@
     <add key="PtcPassword" value="pw" />
     <!--Password-->
     <add key="GoogleRefreshToken" value="" />
-    <add key="DefaultLatitude" value="-36.842887" />
+    <add key="DefaultLatitude" value="55.711311" />
     <!--Default Viaduct Harbour, Auckland, New Zealand-->
-    <add key="DefaultLongitude" value="174.766365" />
+    <add key="DefaultLongitude" value="9.536354" />
     <!--Default Viaduct Harbour, Auckland, New Zealand-->
     <add key="LevelOutput" value="levelup" />
     <!--2 Modes: "time": Every XXX seconds and "levelup" every levelup-->
diff --git a/PokemonGo/RocketAPI/Window/SettingsForm.cs b/PokemonGo/RocketAPI/Window/SettingsForm.cs
index 0ec5c09..e3cd416 100644
--- a/PokemonGo/RocketAPI/Window/SettingsForm.cs
+++ b/PokemonGo/RocketAPI/Window/SettingsForm.cs
@@ -39,9 +39,12 @@ namespace PokemonGo.RocketAPI.Window
             //not use proxy
             GMapProvider.WebProxy = null;
             //center map on moscow
-            double defaultLatitude = Convert.ToDouble(ConfigurationManager.AppSettings["DefaultLatitude"]);
-            double defaultLongitude = Convert.ToDouble(ConfigurationManager.AppSettings["DefaultLongitude"]);
-            gMapControl1.Position = new PointLatLng(defaultLatitude, defaultLongitude);
+            string lat = ConfigurationManager.AppSettings["DefaultLatitude"];
+            string longit = ConfigurationManager.AppSettings["DefaultLongitude"];
+            lat.Replace(',', '.');
+            longit.Replace(',', '.');
+            gMapControl1.Position = new PointLatLng(Convert.ToDouble(lat), Convert.ToDouble(longit));
+


             //zoom min/max; default both = 2
@@ -60,8 +63,15 @@ namespace PokemonGo.RocketAPI.Window
             Settings.Instance.SetSetting(authTypeCb.Text, "AuthType");
             Settings.Instance.SetSetting(ptcUserText.Text, "PtcUsername");
             Settings.Instance.SetSetting(ptcPassText.Text, "PtcPassword");
-            Settings.Instance.SetSetting(latitudeText.Text, "DefaultLatitude");
-            Settings.Instance.SetSetting(longitudeText.Text, "DefaultLongitude");
+            Settings.Instance.SetSetting(latitudeText.Text.Replace(',', '.'), "DefaultLatitude");
+            Settings.Instance.SetSetting(longitudeText.Text.Replace(',', '.'), "DefaultLongitude");
+
+            string lat = ConfigurationManager.AppSettings["DefaultLatitude"];
+            string longit = ConfigurationManager.AppSettings["DefaultLongitude"];
+            lat.Replace(',', '.');
+            longit.Replace(',', '.');
+
+
             Settings.Instance.SetSetting(razzmodeCb.Text, "RazzBerryMode");
             Settings.Instance.SetSetting(razzSettingText.Text, "RazzBerrySetting");
             Settings.Instance.SetSetting(transferTypeCb.Text, "TransferType");
You may download the files in Public Git.