//initial all category list private void InitialAllCategoryIdList() { this._typeList.Clear(); this._typeNameList.Clear(); string[] allSections = _initial.GetSectionNames(); foreach (String section in allSections) { this._typeList.Add(section); this._typeNameList.Add(this._initial.ReadInitial(section, NAME_KEY)); } }
//retrive and classify exist item from ini private void InitialAllItemIdList() { this._itemList.Clear(); this._totalItemList.Clear(); string[] allSections = _initial.GetSectionNames(); foreach (String section in allSections) { String type = this.GetItemType(section); if (!this._itemList.ContainsKey(type)) { this._itemList.Add(type, new List <string>()); } this._itemList[type].Add(section); this._totalItemList.Add(section); } }