Exemple #1
0
 public static void SaveMySetting(string ValueKey, object Value)
 {
     KS.Common.KSRegistry cReg = new KS.Common.KSRegistry();
     cReg.sectionKey = C_RegistrySectionKey;
     cReg.valueKey = ValueKey;
     cReg.value = Value;
 }
Exemple #2
0
 public static object GetMySetting(string ValueKey, object DefaultValue)
 {
     object returnValue;
     KS.Common.KSRegistry cReg = new KS.Common.KSRegistry();
     cReg.sectionKey = C_RegistrySectionKey;
     cReg.valueKey = ValueKey;
     cReg.defaultValue = DefaultValue;
     returnValue = cReg.value;
     return returnValue;
 }