//------
        public void Add(Swimmer sw)
        {
            TreeNode nod;

            //add a root node
            nod = tree.Nodes.Add(sw.getName());
            //add a child node to it
            nod.Nodes.Add(sw.getTime().ToString());
            tree.ExpandAll();
        }
Exemplo n.º 2
0
 private void reload()
 {
     lskids.Clear();
     swdata.moveFirst();
     while (swdata.hasMoreElements())
     {
         Swimmer sw = swdata.getSwimmer();
         lskids.Add(sw.getName());
     }
 }
Exemplo n.º 3
0
 public void Add(Swimmer sw)
 {
     listbox.Items.Add(sw.getName() + "\t" + sw.getTime());
 }