| 123456789101112131415161718192021222324252627282930 |
- using System.ComponentModel;
- using System.Runtime.CompilerServices;
-
- namespace CaritasPWA.Shared {
- // The class that stores the user settings
- public class UserData : INotifyPropertyChanged {
- private string firstname;
- private string lastname;
- private string address;
- private string zip;
- private string city;
- private string phone;
- private string email;
-
-
- public string Firstname { get => firstname; set { firstname = value; RaisePropertyChanged(); } }
- public string Lastname { get => lastname; set { lastname = value; RaisePropertyChanged(); } }
- public string Email { get => email; set { email = value; RaisePropertyChanged(); } }
- public string Address { get => address; set { address = value; RaisePropertyChanged(); }}
- public string Zip { get => zip; set { zip = value; RaisePropertyChanged(); } }
- public string City { get => city; set { city = value; RaisePropertyChanged(); } }
- public string Phone { get => phone; set { phone = value; RaisePropertyChanged(); } }
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- private void RaisePropertyChanged([CallerMemberName] string propertyName = null) {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
|