Пример #1
0
 private void reload()
 {
     lsKids.Items.Clear();
     swdata.moveFirst();
     while (swdata.hasMoreElements())
     {
         Swimmer sw = swdata.getSwimmer();
         lsKids.Items.Add(sw.getName());
     }
 }
Пример #2
0
        private void btClone_Click(object sender, System.EventArgs e)
        {
            SwimData newSd = (SwimData)swdata.Clone();

            newSd.sort();
            while (newSd.hasMoreElements())
            {
                Swimmer sw = (Swimmer)newSd.getSwimmer();
                lsNewKids.Items.Add(sw.getName());
            }
        }