コード例 #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());
 }