public LampConfig GetLampConfig() { LampConfig lampTempCfg = new LampConfig(); lampTempCfg.TimeOff = Convert.ToByte(IniReadValue("LampConfig", "timeOff")); lampTempCfg.TimeOn = Convert.ToByte(IniReadValue("LampConfig", "timeOn")); lampTempCfg.State = Convert.ToByte(IniReadValue("LampConfig", "state")); return(lampTempCfg); }
public void SetLampConfig(LampConfig xLampCfg) { IniWriteValue("LampConfig", "state", xLampCfg.State.ToString()); IniWriteValue("LampConfig", "timeOff", xLampCfg.TimeOff.ToString()); IniWriteValue("LampConfig", "timeOn", xLampCfg.TimeOn.ToString()); }