PWA Fundvelo der Caritas.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserData.cs 1.3KB

123456789101112131415161718192021222324252627282930
  1. using System.ComponentModel;
  2. using System.Runtime.CompilerServices;
  3. namespace CaritasPWA.Shared {
  4. // The class that stores the user settings
  5. public class UserData : INotifyPropertyChanged {
  6. private string firstname;
  7. private string lastname;
  8. private string address;
  9. private string zip;
  10. private string city;
  11. private string phone;
  12. private string email;
  13. public string Firstname { get => firstname; set { firstname = value; RaisePropertyChanged(); } }
  14. public string Lastname { get => lastname; set { lastname = value; RaisePropertyChanged(); } }
  15. public string Email { get => email; set { email = value; RaisePropertyChanged(); } }
  16. public string Address { get => address; set { address = value; RaisePropertyChanged(); }}
  17. public string Zip { get => zip; set { zip = value; RaisePropertyChanged(); } }
  18. public string City { get => city; set { city = value; RaisePropertyChanged(); } }
  19. public string Phone { get => phone; set { phone = value; RaisePropertyChanged(); } }
  20. public event PropertyChangedEventHandler PropertyChanged;
  21. private void RaisePropertyChanged([CallerMemberName] string propertyName = null) {
  22. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  23. }
  24. }
  25. }