Exemple #1
0
 public void addAddress(Address a)
 {
     addresses.Add(a);
     a.addChangedListener(this);
     notifyListeners(null, a.City);
     notifyListeners(null, a.Country);
     notifyListeners(null, a.Street);
 }
Exemple #2
0
 public void removeAddress(Address a)
 {
     a.removeChangedListener(this);
     notifyListeners(a.City, null);
     notifyListeners(a.Country, null);
     notifyListeners(a.Street, null);
     addresses.Remove(a);
 }