public void Add(Swimmer sw)
        {
            DataRow row = dTable.NewRow();

            row["Frname"] = sw.getFrname();
            row[1]        = sw.getLName();
            row[2]        = sw.getAge(); //This one is an integer
            dTable.Rows.Add(row);
            dTable.AcceptChanges();
        }
Esempio n. 2
0
        //---------
        public int CompareTo(object swo)
        {
            Swimmer sw = (Swimmer)swo;

            return(lname.CompareTo(sw.getLName()));
        }