예제 #1
0
        public IrrConfig GetIrrigationConfig()
        {
            IrrConfig irrCfg = new IrrConfig();

            irrCfg.Mode   = Convert.ToByte(IniReadValue("IrrConfig", "mode"));
            irrCfg.Freq   = Convert.ToByte(IniReadValue("IrrConfig", "freq"));
            irrCfg.Number = Convert.ToUInt32(IniReadValue("IrrConfig", "number"));

            return(irrCfg);
        }
예제 #2
0
 public void SetIrrigationConfig(IrrConfig xIrrCfg)
 {
     IniWriteValue("IrrConfig", "mode", xIrrCfg.Mode.ToString());
     IniWriteValue("IrrConfig", "freq", xIrrCfg.Freq.ToString());
     IniWriteValue("IrrConfig", "number", xIrrCfg.Number.ToString());
 }