Exemple #1
0
 public void VoegLocatieToe(Locatie locatie)
 {
     if (Locaties.Contains(locatie))
     {
         throw new ArgumentException("Locatie behoort reeds tot dit land");
     }
     Locaties.Add(locatie);
     locatie.Land = this;
 }
Exemple #2
0
        public void LocatieToevoegen(Locatie locatie)
        {
            if (Locaties.Contains(locatie))
            {
                return;
            }

            Locaties.Add(locatie);
            RondeLocatie.Toevoegen(this, locatie);
        }