Ejemplo n.º 1
0
		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;
		}
Ejemplo n.º 2
0
		public bool DeleteCompetition (SCompetition sc)
		{
			if (competitions.Count > 1) {
				return competitions.Remove (new Competition(sc));
			} else {
				// prevent deleting last competition.
				return false;
			}
		}
Ejemplo n.º 3
0
		public void ModifyCompetition (uint index, SCompetition sc)
		{
			competitions[(int)index] = new Competition(sc);
		}
Ejemplo n.º 4
0
		public void AddCompetition (SCompetition sc)
		{
			competitions.Add (new Competition(sc));
		}