Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            config = new INIFile(AppDomain.CurrentDomain.BaseDirectory + "hen_locale.ini");

            List <string> key_list = config.GetKeysNames(INIFile.StoreTarget.Original, CONFIG_OFFSETS);

            foreach (var key in key_list)
            {
                long offset = config.GetValue(CONFIG_OFFSETS, key, -1);
                if (offset < 0)
                {
                    continue;
                }

                bool has_suffix = config.GetValue(CONFIG_SUFFIXS, key, false);

                var str = new Hen_String(key.Replace('_', ' '), offset, has_suffix);

                comboBox_src.Items.Add(str);
            }
        }