Exemplo n.º 1
0
 private void reload()
 {
     lskids.Clear();
     swdata.moveFirst();
     while (swdata.hasMoreElements())
     {
         Swimmer sw = swdata.getSwimmer();
         lskids.Add(sw.getName());
     }
 }
Exemplo n.º 2
0
        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());
 }