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; }
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; }