예제 #1
0
        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);
        }
예제 #2
0
 public void SetLampConfig(LampConfig xLampCfg)
 {
     IniWriteValue("LampConfig", "state", xLampCfg.State.ToString());
     IniWriteValue("LampConfig", "timeOff", xLampCfg.TimeOff.ToString());
     IniWriteValue("LampConfig", "timeOn", xLampCfg.TimeOn.ToString());
 }