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

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