void TIniFile::WriteStringList(const wxString & Section, const wxString & Ident, TStringList& Value) { EraseSection(Section); for (int i = 0; i < Value.GetCount(); i++) { this->WriteString(Section, wxString::Format("%s%d", Ident, (i)), Value.Item(i)); } }
void SetListBoxItems(wxListBox *lb, TStringList sl) { lb->Clear(); if (sl.GetCount() > 0) { for (size_t i = 0; i < sl.Count(); i++) { wxString st = sl.Item(i); lb->Append(st); } } }