public void ModifyCompetition (SCompetition old_comp, SCompetition new_comp) { Competition oc = new Competition (old_comp); Competition nc = new Competition (new_comp); int index = competitions.IndexOf (oc); competitions[index] = nc; }
public bool DeleteCompetition (SCompetition sc) { if (competitions.Count > 1) { return competitions.Remove (new Competition(sc)); } else { // prevent deleting last competition. return false; } }
public void ModifyCompetition (uint index, SCompetition sc) { competitions[(int)index] = new Competition(sc); }
public void AddCompetition (SCompetition sc) { competitions.Add (new Competition(sc)); }