Exemple #1
0
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));
	}
}
Exemple #2
0
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);
		}
	}
}