Example #1
0
 public void Remove(Amusements a)
 {
     Amusements b = list[list.Count - 1];
     b.ChangeId(a.id);
     list[a.id] = b;
     list.RemoveAt(list.Count - 1);
 }
Example #2
0
 public void Add(Amusements a)
 { 
     if (a.id == list.Count) list.Add(a);
     else throw new Exception("nesedi id a count v ListOfAmusements-Add()"); //todo: nemelo by se stavat, protoze by vzdy melo jit vytvorit jen jednu atrakci
 }