public static void SyncIniUshort(IniFile conf, string section, string key, ref ushort uShortCmd) { int nLoadInteger = conf.ReadInteger(section, key, -1); if (nLoadInteger < 0) { conf.WriteInteger(section, key, uShortCmd); } else { uShortCmd = conf.ReadInteger(section, key, uShortCmd); } }
public static void SyncIniInt(IniFile conf, string section, string key, ref int IntCmd) { int nLoadInteger = conf.ReadInteger(section, key, -1); if (nLoadInteger < 0) { conf.WriteInteger(section, key, IntCmd); } else { IntCmd = nLoadInteger; } }
public static void SyncIniByte(IniFile conf, string section, string key, ref byte byteCmd) { int nLoadInteger = conf.ReadInteger(section, key, -1); if (nLoadInteger < 0) { conf.WriteInteger(section, key, byteCmd); } else { byteCmd = conf.ReadInteger(section, key, byteCmd); } }