@@ -107,18 +107,18 @@ public static void Load()
107
107
}
108
108
109
109
//opening the subkey
110
- RegistryKey regKey = Registry . CurrentUser . OpenSubKey ( @"SOFTWARE\AgIO " ) ;
110
+ RegistryKey regKey = Registry . CurrentUser . OpenSubKey ( @"SOFTWARE\AgOpenGPS " ) ;
111
111
112
112
//create default keys if not existing
113
113
if ( regKey == null )
114
114
{
115
- RegistryKey Key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgIO " ) ;
115
+ RegistryKey Key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgOpenGPS " ) ;
116
116
117
117
//storing the values
118
118
Key . SetValue ( "Language" , "en" ) ;
119
119
Key . SetValue ( "ProfileName" , "Default Profile" ) ;
120
120
Key . Close ( ) ;
121
- Log . EventWriter ( "Registry -> SubKey AgIO and Keys Created\r " ) ;
121
+ Log . EventWriter ( "Registry -> SubKey AgOpenGPS and Keys Created\r " ) ;
122
122
}
123
123
else
124
124
{
@@ -127,16 +127,16 @@ public static void Load()
127
127
//Profile File Name from Registry Key
128
128
if ( regKey . GetValue ( "ProfileName" ) == null || regKey . GetValue ( "ProfileName" ) . ToString ( ) == null )
129
129
{
130
- RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgIO " ) ;
130
+ RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgOpenGPS " ) ;
131
131
key . SetValue ( "ProfileName" , "Default Profile" ) ;
132
132
Log . EventWriter ( "Registry -> Key Profile Name was null and Created" ) ;
133
133
}
134
134
else
135
135
{
136
136
//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 ( ) == "" )
138
138
{
139
- RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgIO " ) ;
139
+ RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgOpenGPS " ) ;
140
140
key . SetValue ( "Language" , "en" ) ;
141
141
Log . EventWriter ( "Registry -> Culture was null and Created" ) ;
142
142
}
@@ -209,7 +209,7 @@ public static void Save()
209
209
{
210
210
Properties . Settings . Default . Save ( ) ;
211
211
212
- RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgIO " ) ;
212
+ RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgOpenGPS " ) ;
213
213
try
214
214
{
215
215
key . SetValue ( "ProfileName" , profileName ) ;
@@ -231,9 +231,9 @@ public static void Save()
231
231
232
232
public static void Reset ( )
233
233
{
234
- Registry . CurrentUser . DeleteSubKeyTree ( @"SOFTWARE\AgIO " ) ;
234
+ Registry . CurrentUser . DeleteSubKeyTree ( @"SOFTWARE\AgOpenGPS " ) ;
235
235
236
- RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgIO " ) ;
236
+ RegistryKey key = Registry . CurrentUser . CreateSubKey ( @"SOFTWARE\AgOpenGPS " ) ;
237
237
try
238
238
{
239
239
key . SetValue ( "ProfileName" , "Default Profile" ) ;
0 commit comments