示例#1
0
        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);
            }
        }
示例#2
0
        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;
            }
        }
示例#3
0
        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);
            }
        }