aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2017-05-27 15:08:23 +0200
committermarcinzelent <marcin@zelent.net>2017-05-27 15:08:23 +0200
commit5b8184a2fd8183f47637300bbda80b36e9f2023f (patch)
tree1a84489efc3ff82c19d21f71dc6cd678665a702a
parent2a77dfb29886a2e6a778e49bb3eff3516689288a (diff)
Removed obsolete constructor and ToString method, added OnPropertyChanged for picture.
-rw-r--r--ApartmentManager/ApartmentManager/Model/User.cs20
1 files changed, 1 insertions, 19 deletions
diff --git a/ApartmentManager/ApartmentManager/Model/User.cs b/ApartmentManager/ApartmentManager/Model/User.cs
index e7e43ec..f5da6fd 100644
--- a/ApartmentManager/ApartmentManager/Model/User.cs
+++ b/ApartmentManager/ApartmentManager/Model/User.cs
@@ -25,18 +25,6 @@ namespace ApartmentManager.Model
public DateTime? MoveInDate { get; set; }
public DateTime? MoveOutDate { get; set; }
-
- public User() { }
-
- public User(string FirstName, string LastName, string Phone, DateTime BirthDate, string Email)
- {
- this.FirstName = FirstName;
- this.LastName = LastName;
- this.BirthDate = BirthDate;
- this.Phone = Phone;
- this.Email = Email;
- }
-
public string Picture
{
get => _picture;
@@ -46,13 +34,7 @@ namespace ApartmentManager.Model
OnPropertyChanged(nameof(Picture));
}
}
- public override string ToString()
- {
- return string.Format($"First name {FirstName} Last name {LastName} Phone {Phone}");
- }
-
-
-
+
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]