private void btClone_Click(object sender, EventArgs e) { int i = lskids.SelectedIndex(); if (i >= 0) { Swimmer sw = swdata.getSwimmer(i); lsnewKids.Add(sw.getName() + "\t" + sw.getTime()); lskids.clearSelection(); } }
public void Add(Swimmer sw) { listbox.Items.Add(sw.getName() + "\t" + sw.getTime()); }