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); }
public void SetIrrigationConfig(IrrConfig xIrrCfg) { IniWriteValue("IrrConfig", "mode", xIrrCfg.Mode.ToString()); IniWriteValue("IrrConfig", "freq", xIrrCfg.Freq.ToString()); IniWriteValue("IrrConfig", "number", xIrrCfg.Number.ToString()); }