Skip to content

Commit b247945

Browse files
Merge pull request #588 from AgOpenGPS-Official/patchMaster
Patch master
2 parents 07ac155 + 11e613c commit b247945

29 files changed

+292
-1380
lines changed

SourceCode/AgIO/Source/Classes/CSettings.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ public static void Load()
107107
}
108108

109109
//opening the subkey
110-
RegistryKey regKey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\AgIO");
110+
RegistryKey regKey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\AgOpenGPS");
111111

112112
//create default keys if not existing
113113
if (regKey == null)
114114
{
115-
RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgIO");
115+
RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgOpenGPS");
116116

117117
//storing the values
118118
Key.SetValue("Language", "en");
119119
Key.SetValue("ProfileName", "Default Profile");
120120
Key.Close();
121-
Log.EventWriter("Registry -> SubKey AgIO and Keys Created\r");
121+
Log.EventWriter("Registry -> SubKey AgOpenGPS and Keys Created\r");
122122
}
123123
else
124124
{
@@ -127,16 +127,16 @@ public static void Load()
127127
//Profile File Name from Registry Key
128128
if (regKey.GetValue("ProfileName") == null || regKey.GetValue("ProfileName").ToString() == null)
129129
{
130-
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgIO");
130+
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgOpenGPS");
131131
key.SetValue("ProfileName", "Default Profile");
132132
Log.EventWriter("Registry -> Key Profile Name was null and Created");
133133
}
134134
else
135135
{
136136
//Culture from Registry Key
137-
if (regKey.GetValue("AgOne_Culture") == null || regKey.GetValue("Language").ToString() == "")
137+
if (regKey.GetValue("Language") == null || regKey.GetValue("Language").ToString() == "")
138138
{
139-
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgIO");
139+
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgOpenGPS");
140140
key.SetValue("Language", "en");
141141
Log.EventWriter("Registry -> Culture was null and Created");
142142
}
@@ -209,7 +209,7 @@ public static void Save()
209209
{
210210
Properties.Settings.Default.Save();
211211

212-
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgIO");
212+
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgOpenGPS");
213213
try
214214
{
215215
key.SetValue("ProfileName", profileName);
@@ -231,9 +231,9 @@ public static void Save()
231231

232232
public static void Reset()
233233
{
234-
Registry.CurrentUser.DeleteSubKeyTree(@"SOFTWARE\AgIO");
234+
Registry.CurrentUser.DeleteSubKeyTree(@"SOFTWARE\AgOpenGPS");
235235

236-
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgIO");
236+
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\AgOpenGPS");
237237
try
238238
{
239239
key.SetValue("ProfileName", "Default Profile");

SourceCode/AgIO/Source/Forms/FormCommSetGPS.Designer.cs

Lines changed: 45 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)